pcEnvironment returns mypurecloud.com instead of mypurecloud.de

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!

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,

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

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,

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