Finding Contact Role Ids in Your CRM
Step 1: Setting Up OAUTH
1. Click Setup >> Connections >> Add Connection >> Zoho OAuth
2. Configure the connection as below:
STEP 2: Functions | Create a New Function & paste in the following code
Step 3: Run the Function
This will give you a list of all of the contact roles configured in the system with their IDs:
{
"contact_roles": [
{
"sequence_number": 1,
"name": "Developer/Evaluator",
"id": "4566892000000006871"
},
{
"sequence_number": 2,
"name": "Decision Maker",
"id": "4566892000000006873"
},
{
"sequence_number": 3,
"name": "Purchasing",
"id": "4566892000000006875"
}
]
}
Related Articles
Updating Deal Field from Deal Contact Role
To get the Your Contact Role Ids, see here Change the Ids where required. deal = zoho.crm.getRecordById("Deals", dealId); dealContactRoles = zoho.crm.getRelatedRecords("Contact_Roles", "Deals", dealId); mpRoles = map(); for each contact in ...
Event & Contact Sync between Office365 & Zoho CRM
Connect your Meetings & Contacts between Zoho CRM and Microsoft Office 365. in Office a new calender's is created called Zoho CRM, which you'll need to overlay in your Outlook. Events DO NOT sync to your personal calendar. The same applies to ...
Mass Deleting Records In Zoho CRM using the API
Pre-requisites Using Node.js In project folder install Axios (npm install axios) In project folder, install dotenv to use .env .create .env file .env File Structure CLIENT_ID=your_client_id_here CLIENT_SECRET=your_client_secret_here ...
Updating a Zoho CRM Subform (Accounts) from another Module (Deals)
Updating a Zoho CRM Subform This script (courtesy of Zoho) will update existing records in a subform in one module (Accounts) from another Module (Deals). To create a cross-moduel subform entry (at creation for example), please see here ... ...
Related List to Show Relevant Data from Other Modules
//Get Account Details accountMap = zoho.crm.getRecordById("Accounts",accountId); //Get account Variables contactList = zoho.crm.getRelatedRecords("Contacts","Accounts",accountId); // rowVal = 0; responseXML = ""; // if(contactList.size() > 1) { ...