Hi,
I have a workflow that creates some activities if the status, ("Huidige Status"), is set to "1. Actief". When I manualy change the status to 1. Actief the workflow does get triggered, but now I am writing a function that should change the status to 1. Actief and trigger the workflow named "ActiesBijActiveren_Alarm". Using my function the status does change to 1. Actief, but the workflow does not get triggered. This is the code:
- ClientID = 11111;
- Clientstatus = Map();
- Clientinfo = zoho.crm.getRecordById("Contacts",ClientID);
- Clientstatus1 = Clientinfo.getJson("Huidige_Status");
- Clientstatus2 = Clientstatus1.tostring();
- if(Clientstatus2 == "Verzonden")
- {
- test = zoho.crm.updateRecord("Contacts",ClientID,{"Huidige_Status":"1. Actief"},{"trigger":["ActiesBijActiveren_Alarm"]});
- info test;
- }