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 requested sales entity detail (e.g. Order detail)
Arguments
Argument
Type
Description
index
Number
An index of requested item.
This example demonstrates how to update the order detail quantity.
// 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+).functionincreaseQuantity(orderDetailIndex,increment){return__awaiter(this,void0,void0,function*(){try{vardetail=yieldMobileCRM.UI.EntityForm.DetailCollection.getAsync(orderDetailIndex);detail.properties["quantity"]=+detail.properties["quantity"]+increment;// work with numbers, not strings!// Update the SalesOrderDetail entity in order details collectiondetail.update();}catch(err){MobileCRM.bridge.alert(err);}});}