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();
- }
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.