External metrics data upload

Hi!

I'm trying to use the /api/v2/employeeperformance/externalmetrics/data endpoint to upload data to a external metric with the following definition:

image

I included myself in a separate Gamification Profile (for testing purposes):

So I tested within API explorer. My request body:

{
"items": [
{
"type": "Total",
"userId": "e0f79a68-2ea6-4350-8f45-347ac5113b94",
"metricId": "44da41ca-1625-4c6b-a7be-61e99c62200a",
"dateOccurred": "2023-05-11",
"value": 1,
"count": 30
}
]
}

My request response:

{
"processedEntities": [
{
"userId": "e0f79a68-2ea6-4350-8f45-347ac5113b94",
"metricId": "44da41ca-1625-4c6b-a7be-61e99c62200a",
"dateOccurred": "2023-05-11",
"value": 1,
"count": 30,
"type": "Total",
"totalValue": 1,
"totalCount": 30
}
],
"unprocessedEntities": []
}

Everything seems fine, yet the data does not show in the UI:

Am I missing something?

Did you run through all the steps in the following resource article? If so, did you encounter any issues?

@Langsford_Jay , thanks for the quick reply

Yes, I went through all the steps, didn't get any error and yet the data doesn't show in the UI

Hi Deivid,

As of now only data sent for the current workday will be calculated live. Any results sent for a previous workday or future workday will be processed in the nightly pipeline.

Could you please try uploading data for today and confirm you are seeing the data?

Thanks
Jacou Sarrazin

Hello @Jacou_Sarrazin

I tried and didn't work:

Hi Deivid, possible that your total value of 1 is not getting any points against your objective? Leaderboard does not show the agent in the list if points are at 0.

I would recommend you look at the objective you set, you then submit a value that does generate point and then instead of looking on the leaderboard you could go directly on the scorecard of the agent. Even if no points are generated, the value will appear.

Could you please confirm in which Genesys Cloud region you are?

Hi @Jacou_Sarrazin

My mistake was using float point values in percentage metrics, it is not necessary.

I created a number metric, added values and it worked great!

One last question: Are there any plans to add this functionality in through the UI?

Thanks for the help

Hi @Deivid.Araujo , glad to hear this works.

We don't have a UI planned for this on the roadmap. We expect customers to have some sort of cron jobs or connectors to upload data periodically to the end point so not really through a manual step in the UI. You can submit your UI idea to our Idea portal websites were we do take into consideration customer requests: https://genesyscloud.ideas.aha.io/ideas?project=WEGPM

Thanks
Jacou

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.