-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.Platform.requestObject
rescocrm edited this page May 15, 2023
·
9 revisions
Requests the managed Platform object.
Method initiates an asynchronous request which either ends with calling the errorCallback or with calling the callback with Javascript version of Platform object. See MobileCRM.Bridge.requestObject for further details.
| Argument | Type | Description |
|---|---|---|
| callback | function(platform) | The callback function that is called asynchronously with serialized Platform object as argument. |
| errorCallback | function(errorMsg) | The errorCallback which is called in case of error. |
| scope | Object | The scope for callbacks. |
This example demonstrates how to get MobileCRM.Platform object.
// Request MobileCRM.Platform object
MobileCRM.Platform.requestObject(function (platform) {
/// <param name="platform" type="MobileCRM.Platform"></param>
var result = "Platform Info : \n";
for (var prop in platform) {
result += prop + " : " + platform[prop] + "\n";
}
MobileCRM.bridge.alert(result);
}, MobileCRM.bridge.alert);