Legacy Dev Forum Posts

 View Only

Sign Up

Updating configuration of embedded-client-app - how to know the integrationID?

  • 1.  Updating configuration of embedded-client-app - how to know the integrationID?

    Posted 06-05-2025 18:15

    Jacou | 2019-05-17 18:45:33 UTC | #1

    Hi, we want to update the configuration of our client app (advanced section, adding support for lifecycle-hooks). Is there a way to know in which integration/client app my code is currently running? The objective would be to obtain the IntegrationId of the app in which I am running and then do a PUT on the configuration.

    We have customers running our premium app - this one is relatively easy to do by getting the list of permitted apps, then finding the one with our integrationType and then obtaining the IntegrationID:

    "integrationType": { "id": "premium-app-ngagement", "selfUri": "/api/v2/integrations/types/premium-app-ngagement" },

    My problem is that we also have customers running our app through the embedded-client-app. In this case this is a standard integrationType. I guess we could figure out our integrationID by doing a wildcard match on the properties-url (we serve the same code on multiple regions so different URL) but I am hoping there is a simpler/safer way to figure out in which IntegrationID my code is currently running.

    Note that this check is only done when the logged in users has sufficient privileges to update the configuration.

    thanks


    tim.smith | 2019-05-20 13:51:41 UTC | #2

    There's not currently any way for a custom client app to know which configuration item has loaded it. That would be a good feature to request at https://purecloud.ideas.aha.io/ideas though.


    Jacou | 2019-05-20 14:30:10 UTC | #3

    Ok thanks will submit the idea and for the time being we will rely on the wildcard match on the URL.


    system | 2019-06-20 14:30:12 UTC | #4

    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: 5178