Creating record in module based on field entries in another module - Multiselect lists and date fields not being copied over when left blank!
The workflow rule that triggers the function that copies the fields from the previous module into the newly created of the new module sometimes does not trigger.
This is bizarre because when I check the audit log, I see that the workflow rule was called, but the new record was not made nonetheless. This is frustrating because we are not seeing what exactly the error was.
So far I've narrowed down the issue to being these components of the dictionary that's passed into the zoho.crm.createRecord function:
- "HaltDate":HaltDate.toString("yyyy-MM-dd") <- Date field
- "DateTime": DateTime.toString("yyyy-MM-dd'T'HH:mm:ss+08:00") <- Datetime field
- "RelatedIssues":RelatedIssues.toJSONList() <- Multiselect field
I notice that 1) whenever either of the date fields are empty, or 2) whenever multiple options are selected for the 'RelatedIssues' Multiselect field, my record in that 2nd module does not get created. The function does get called correctly - but the module isn't created.
Narrowing down the issue to these was something that took some hours - I wish the error was more readily reflected! I'd appreciate input from anyone who's experienced the same :)