I am somewhat new to Deluge and having a little trouble mapping my own concepts to cribbed code so am seeking an assist.
I have a custom object called "Bids". On my "Leads" object, I have a subform where I associated many Bids to 1 Lead. When a status action happens on the Bid record, I want to update a date field in the corresponding line item of the subform on the Lead object but I'm unsure of how to isolate the line item record for update. Here's as far as I've gotten in terms of API Names and whatnot.
/*This function will be executed from the bid object when the status field is updated from its default state"Design Requested" to "Design Request Accepted"
It will check and update the Lead Record accordingly:
If the Initial Design Complete checkbox is blank, send the webhook with the lead details to aurora to create the aurora project, if it's not, do not.
Update the subform bid record regardless to keep it up to date. */
//This automation will execute from a workflow associated with the bid and run bid-by-bid
target_bid = zoho.crm.getRecordById("Bids",bid_id);
cur_bid_status = target_bid.get("Bid_Status");
target_bid_status = "Design Requested";
//Automation will be making changes to the lead record after checking field states of the lead record
related_lead_ref = target_bid.get("Civic_Job_Reference");
related_lead_id = related_lead_ref.get("id");
target_lead = zoho.crm.getRecordById("Leads",related_lead_id);
target_lead_idc_field = target_lead.get("Initial_Design_Completed");
target_status = "Design Request Accepted";
bids_subform = ifnull(target_lead.get("Bid_Design_Processing"),"");
info bids_subform;