Pass a Dynamics 365 URL to a widget library in Dynamics 365 Channel Integration Framework 2.0
To access the Dynamics 365 Channel Integration Framework APIs, you need to load the
msdyn_cilibrary.js file inside your communication widget. Since the widget is in a different domain, this library needs to know what Dynamics 365 domain it should talk to. For this reason you need to pass your Dynamics 365 instance URL to the widget library.
Government Community Cloud is supported in Channel Integration Framework 2.0 only. For any organization hosted in Government Community Cloud (GCC) or Microsoft Cloud Germany, the provider domain should either reside inside the respective cloud or it should be allowed access from within that cloud.
A Dynamics 365 URL to a widget library can be passed by using one of the following methods.
- Add attributes to the script tag.
- Add a URL parameter.
Add attributes to the script tag
The widget provider has to add the following attributes to the script tag that loads
msdyn_cilibrary.js to pass the Dynamics 365 domain:
data-crmurl: <CRM domain name>
Add a URL parameter
Another method is to pass a
ucilib parameter in the landing URL, like