You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rescocrm edited this page May 15, 2023
·
9 revisions
Asynchronously loads the CRM entity properties.
Arguments
Argument
Type
Description
entityName
String
The logical name of the entity, e.g. "account".
id
String
GUID of the existing entity or null for new one.
This example demonstrates how to load the account entity with given id.
// WARNING: async/await pattern requires ECMAScript 6 and it's not supported on Internet Explorer.// It's supported by all modern browsers including mobile version of Chrome and Safari (requires Android 5+ and iOS 10+).functiongetAccountData(accountId){return__awaiter(this,void0,void0,function*(){try{varentity=yieldMobileCRM.DynamicEntity.loadAsync("account",accountId);MobileCRM.bridge.alert(JSON.stringify(entity));}catch(err){MobileCRM.bridge.alert(err);}});}