abel | 2022-05-03 20:22:46 UTC | #1
install the library purecloud-client-app-sdk to my angular project, then to use it implement the following javascript code as it appears in the documentation
import ClientApp from 'purecloud-client-app-sdk'; let myClientApp = new ClientApp({ pcEnvironmentQueryParam: 'pcEnvironment' }); but I get the following error in chrome browser "core.js:5967 ERROR Error: Invalid value for query param 'mypurecloud.de' provided. Must be a non-null, non-empty string"
 |
 |
Jerome.Saint-Marc | 2022-05-04 06:24:03 UTC | #2
Hello,
let clientApp = new ClientApp({ pcEnvironmentQueryParam: 'pcEnvironment' }); If you use 'pcEnvironmentQueryParam' parameter in the ClientApp constructor, it will look for a URL query parameter named 'pcEnvironment' and extract its value (https://my_webapp_server/path/index.html?pcEnvironment=mypurecloud.de)
let clientApp = new ClientApp({ pcEnvironment: 'mypurecloud.de' }); If you use 'pcEnvironment' parameter in the ClientApp constructor, it will directly set the region to the value you provide in the ClientApp constructor.
See answer on this other post for more details
Regards,
system | 2022-06-04 06:24:54 UTC | #3
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: 14565