Calling Functions using REST APIs
Hi,
I'm trying to create a new standalone function to integrate my external system and Zoho CRM.
I want to use the function as an incoming webhook, I need to create new Lead into Zoho CRM and this approach may be works, but I'm facing an issue when running the function script.
I'm following the same steps described in this article:
The point is: When I run the script, I get the following error:
Failed to save the function
- Variable 'crmAPIRequest' is not defined Line Number: 1
Below I'm sharing the first line of my script:
crmAPIRequestMap = crmAPIRequest.toMap();
So, my idea is to send a POST request to Zoho and, inside the function, I'll get all information I need from the request payload and then create a new Lead.
Unfortunately, I'm stuck, I just can't move forward.
Can someone give me any help on this matter? It would be very helpful.
Thanks you in advance.
Renato Becker.