getEnvironment (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
Gets the current Unified Interface app and page details such as the application ID (appid), application URL (appUrl), client URL (clientUrl) entity name (etn), record ID (id), page type (pagetype), version of the Dynamics 365 app (crmVersion), and version of the Dynamics 365 Channel Integration Framework app (cifVersion).
Syntax
Microsoft.CIFramework.getEnvironment().then(successCallback, errorCallback);
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| successCallback | Function | No | A function to call when the request for environment details is successful. |
| errorCallback | Function | No | A function to call when the request for the environment fails. |
Return value
Returns a Promise object of type String with details of the current Unified Interface app and page.
Note
The details like etn, id, appid, and pagetype will be available in the response object of the API only if the underlying focused session belongs to the channel provider.
Commentaires
Envoyer et afficher des commentaires pour