MobileCRM.Platform.requestObject - Resconet/JSBridge GitHub Wiki

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.

Arguments

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);
⚠️ **GitHub.com Fallback** ⚠️