Hey I am using ZOHO CRM with the extension with Active campaign, From active campaign all the data was receiving into CRM, but from CRM those data has to go to google sheets, It was done in workflow rules but the data was not gettiing triggered in the zoho flow this is the code for the extension
acModuleMap.put("activecampaign1__Subject",parameters.get("campaign[message][subject]"));
acModuleMap.put("activecampaign1__AC_List",ListNameValue.toString());
acModuleMap.put("activecampaign1__Email",parameters.get("contact[email]"));
acModuleMap.put("activecampaign1__Created_Time",parameters.get("date_time"));
acModuleMap.put("activecampaign1__Event_Type",acType);
if(!isNull(contactId))
{
if(choosenModule == 'Contacts' && recordFoundInChosenModule)
{
acModuleMap.put("activecampaign1__Contact_Name",contactId);
}
else if(choosenModule == 'Contacts' && recordFoundInOtherModule)
{
acModuleMap.put("activecampaign1__Lead_Name",contactId);
}
else if(choosenModule == 'Leads' && recordFoundInChosenModule)
{
acModuleMap.put("activecampaign1__Lead_Name",contactId);
}
else if(choosenModule == 'Leads' && recordFoundInOtherModule)
{
acModuleMap.put("activecampaign1__Contact_Name",contactId);
}
}
triggerMap = List();
triggerMap.add("workflow");
triggerMap.add("blueprint");
triggerMap.add("approval");
mapp = Map();
mapp.put("trigger",triggerMap);
if(debug)
{
sendmail
[
from :zoho.adminuserid
to :zoho.adminuserid
subject :"acModuleMap"
message :"acModuleMap ::::: " + acModuleMap
]
}