Get Records From Zoho Modules Using Deluge

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.

Supported Modules:

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.

Request URL:

https://www.zohoapis.com/crm/v2/Leads

Header:

Authorization: Zoho-oauthtoken 1000.XXXXXXXXXXXXXXXX.XXXXXXXXXXXX2

For Authorization, you need to put an access token.

To the creation of access token and refresh token please follow Generate Refresh and Access Token, Access token from refresh 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;

 

Submit a Comment

Your email address will not be published. Required fields are marked *

Footer Logo

Subscribe

Select Categories