Workflow and Function to update Lead's Campaign status.
I've created a workflow that will trigger when I add a tag to a Lead. The Workflow will send an email and run a function that will add a Lead to a specific campaign and their status as "Sent".
I've tested the function and it works. When it runs through the workflow I get a failure.
The reason listed is: "Argument type mismatch -Found 'TEXT' but Expected 'Long' at lineNumber 7 "
Here is the how I added the Function into the Workflow
Function Code:
- campId = "xxxxxxx";
- mp = Map();
- mp.put("Member_Status","Sent");
- mp.put("CAMPAIGNID",campId.toLong());
- resp = zoho.crm.updateRelatedRecord("Campaigns",campId.toLong(),"Leads",leadId.toLong(),mp);
- info resp;
Function Arguments:
What can I do to get this to work?