Legacy Dev Forum Posts

 View Only

Sign Up

pcEnvironment returns mypurecloud.com instead of mypurecloud.de

  • 1.  pcEnvironment returns mypurecloud.com instead of mypurecloud.de

    Posted 06-05-2025 18:20

    xember | 2021-11-04 12:56:26 UTC | #1

    Hi,

    I am creating an integration with the cloudplatform. The url in my browser is:

    https://apps.mypurecloud.de/../..

    The integration URL is:

    http://localhost:3000?language={pcLangTag}&environment={pcEnvironment}

    With the following code I should expect "mypurecloud.de" as a reponse but i get "mypurecloud.com" is this a bug or am I doing something wrong?

    import ClientApp from 'purecloud-client-app-sdk';

    let thisApp = new ClientApp({

    environment: 'pcEnvironment'

    });

    console.log(thisApp.pcEnvironment)

    Thanks for your help!


    Jerome.Saint-Marc | 2021-11-04 13:26:54 UTC | #2

    Hello,

    Your integration URL needs {{}} for the parameters subject to url interpolation. That would be: http://localhost:3000?language={{pcLangTag}}&environment={{pcEnvironment}} See here for URL interpolation

    Your call to ClientApp constructor seems also incorrect.

    let thisApp = new ClientApp({ pcEnvironmentQueryParam: 'environment' });

    See here for information on ClientApp SDK environments.

    Regards,


    xember | 2021-11-04 15:27:45 UTC | #3

    Thanks.... I am going home if I make this kind of stupid errors :slight_smile:


    Jerome.Saint-Marc | 2021-11-04 16:26:13 UTC | #4

    Not stupid. :slight_smile: There are places where the double {{xxxx}} is missing - only one set of {} appears. This is/was due to automatic formatting on the doc site. The link I provided below is one of the pages which gives and displays the proper format.

    Regards,


    system | 2021-12-05 16:26:18 UTC | #5

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