campaignMap0 = zoho.crm.searchRecords("Campaigns","(Mail_Code:equals:" + mailCode + ")");
info campaignMap0;
campaignId = campaignMap0.get("id");
info campaignId;
ERROR: Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function 'get'
Line Number:26
The info campaignMap0; line works and returns the entire map of the module record. I have tried the following but I get the same error:
campaignId = campaignMap0.get("id").toLong();
I know I am close but I just need one of your geniuses to point me in the right direction