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 Aug 2, 2024
·
2 revisions
Asynchronously returns the collection of the sales entity details (e.g. Order details)
This example demonstrates how to get the list of order details.
return__awaiter(this,void0,void0,function*(){// 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+).try{varorderDetails=yieldMobileCRM.UI.EntityForm.DetailCollection.getAllAsync();vartext=orderDetails.map(function(detail){return"Product: "+detail.properties["productid"].primaryName+", Quantity: "+detail.properties["quantity"];}).join("\n");if(text.length>0)MobileCRM.bridge.alert(text);}catch(err){MobileCRM.bridge.alert(err);}});