Client script - avoid an additional fetch
This is a script for onCustomViewLoad.
I already have the record ID for the record to update.
Is it possible to update a record without doing the additional fetch on line 4?
- var reservation_details = ZDK.Apps.CRM.Size_Run_Details.searchByCriteria(`Fulfillment_Status:equals:Available`);
- // iterate over reservation_details.
- {
- var reservation_data = ZDK.Apps.CRM.Size_Run_Details.fetchById(reservation_detail_id);
- reservation_data.Fulfillment_Status = "Available";
- var response = reservation_data.__update();
- }