internal exception postUrl API call in custom function
Hello,
I have a custom function written that makes a PostUrl API call to Hubspot CRM to create deals. It works for me in Postman, however I am getting an "internal exception" when I execute it.
Here is the function code:
- myMap=map();
- myMap.put("Content Type","application/json");
- params="{\"associations\": {\"associatedCompanyIds\": [\"" + input.aHScompanyId + "\"],\"associatedVids\": [\"" + ccHSid + "\"]},\"properties\": [{\"value\": \"" + input.pPotentialName + "\",\"name\": \"dealname\"},{\"value\": \"" + ppAmount + "\",\"name\": \"amount\"},{\"value\":\"newbusiness\",\"name\": \"dealtype\"},{\"value\":\"7\",\"name\": \"hubspot_owner_id\"}]}";
- resp = postUrl("https://api.hubapi.com/deals/v1/deal/?hapikey=xxxxx-xxxx-xxx-xxxx-xxxxxx",params,myMap);
- info resp;
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.