Skip to main content
Contributor ⭐️
October 3, 2019
Solved

Gainsight PX API save app process time duration

  • October 3, 2019
  • 3 replies
  • 105 views
I am trying to leverage gainsight PX API so that I can POST information about how long a certain process takes (from the backend). So basically, I will have a call in Java that determines the time from method 1 until the app gets to method 2, then save that time somehow to Gainsight (along with other information like which process this was and possibly user information). Is this possible? And how do I achieve this?

    Best answer by angelo
    Hi Jeff... yes, you can use the Gainsight PX Public (REST) API to push in offline events.

    Use the Custom Event Function call, here for the API call details:

    https://aptrinsic.docs.apiary.io/#reference/custom-events/v1eventscustom/create-custom-event

    You can include attributes such as the duration, process, etc. The custom event will be associated with a specific UserId that should match a userId that already exists in PX from a previous login so that the custom event will be assigned against.

    3 replies

    lila_meyer
    Gainsight Employee ⭐️⭐️⭐️
    October 3, 2019
    Welcome to the Community, @jshowe8 !

    Thanks for posting, and we're working on getting you an answer shortly.

    When you have a moment, we recommend Following the PX category so you can stay up-to-date on the latest PX conversations and product tips!



    Lila Krutel, Dir. Global Education Services
    lila_meyer
    Gainsight Employee ⭐️⭐️⭐️
    October 4, 2019
    @jshowe8 Hi Jeff! Do you mind sharing which company you're from, so we can make sure your CSM is looped in to better assist here? Thanks!

    Lila Krutel, Dir. Global Education Services
    angelo
    angeloAnswer
    Helper ⭐️⭐️
    October 7, 2019
    Hi Jeff... yes, you can use the Gainsight PX Public (REST) API to push in offline events.

    Use the Custom Event Function call, here for the API call details:

    https://aptrinsic.docs.apiary.io/#reference/custom-events/v1eventscustom/create-custom-event

    You can include attributes such as the duration, process, etc. The custom event will be associated with a specific UserId that should match a userId that already exists in PX from a previous login so that the custom event will be assigned against.