Legacy Dev Forum Posts

 View Only

Sign Up

External metrics data upload

  • 1.  External metrics data upload

    Posted 06-05-2025 18:26

    Deivid.Araujo | 2023-05-12 12:45:53 UTC | #1

    Hi!

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

    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?


    Langsford_Jay | 2023-05-12 13:10:37 UTC | #2

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

    https://help.mypurecloud.com/articles/test-external-gamification-metrics/


    Deivid.Araujo | 2023-05-12 13:26:03 UTC | #3

    @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


    Jacou_Sarrazin | 2023-05-12 15:24:44 UTC | #4

    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


    Deivid.Araujo | 2023-05-12 19:36:06 UTC | #5

    Hello @Jacou_Sarrazin

    I tried and didn't work:


    Jacou_Sarrazin | 2023-05-12 22:07:37 UTC | #6

    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?


    Deivid.Araujo | 2023-05-15 12:02:30 UTC | #7

    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


    Jacou_Sarrazin | 2023-05-25 15:46:11 UTC | #8

    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


    system | 2023-06-25 15:46:15 UTC | #9

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


    This post was migrated from the old Developer Forum.

    ref: 19890