In this tutorial, We are going to learn to Get Records From Zoho Modules Using Deluge.
To get the list of available records from a module.
Leads, Accounts, Contacts, Deals, Sales Orders, Purchase Orders, Campaigns, Tasks, Events, Calls, Products, Activities.
In this tutorial, I am going to get records of Leads.
Authorization: Zoho-oauthtoken 1000.XXXXXXXXXXXXXXXX.XXXXXXXXXXXX2
For Authorization, you need to put an access token.
Full Source Code:
token = invokeurl [ url :"https://accounts.zoho.com/oauth/v2/token?refresh_token=1000.XXXXXXXXXXXXXXXXXXXX.XXXXXXXX&client_id=1000.XXXXXXXXXXXXXXXXXXXX.XXXXXXXX&client_secret=1000.XXXXXXXXXXXXXXXXXXXX.XXXXXXXX&grant_type=refresh_token" type :POST ]; zoho_token = token.get('access_token'); info zoho_token; header_project = Map(); header_project.put("Authorization","Zoho-oauthtoken " + zoho_token); get_leads_response = invokeurl [ url :"https://www.zohoapis.com/crm/v2/Leads" type :GET headers:header_project ]; data = get_leads_response.get("data"); info get_leads_response;