CRM Help

updateRelatedRecords Method

Purpose

You can use the updateRelatedRecords method to update records related to another record.

Modules Supported

ModuleRelated Module
Campaigns

Leads
Contacts

Products

Leads
Accounts
Contacts
Potentials
Price Books

Note:

  • It is also possible to update a Campaign or Product keeping any of the Related Module as the Parent Module.

Request URL

To update the member status of a Contact related to a Campaign

XML Format:

https://crm.zoho.com/crm/private/xml/Campaigns/updateRelatedRecords?authtoken=Auth Token&scope=crmapi
&relatedModule=Contacts&xmlData=<Contacts><row no="1"><FL val="CONTACTID">9999999999</FL><FL val="member_status">Sent</FL></row></Contacts>&id=99999999999

JSON Format:

https://crm.zoho.com/crm/private/json/Campaigns/updateRelatedRecords?authtoken=Auth Token&scope=crmapi&relatedModule=Contacts&xmlData=<Contacts><row no="1"><FL val="CONTACTID">9999999999</FL><FL val="member_status">Sent</FL></row></Contacts>&id=99999999999

Request Parameters

ParameterData TypeDescription
authtoken*StringEncrypted alphanumeric string to authenticate your Zoho credentials.
scope*StringSpecify the value as crmapi.
relatedModule*StringThe module to which a record is related.

For example: If a lead related to a campaign needs to be updated, the value for this parameter will be Leads.

id*IntegerThe ID of the record to be updated.
xmlData*XMLThe XML values to be passed.

* - Mandatory parameter

Note:

  • Refer the Release Notes page to learn more about enhancements made in the API implementation.

Additional Notes

  • You can update a maximum of 100 records.
  • While retrieving data from your Zoho CRM account, role-based security (Roles, Profiles, Field-level security and Data sharing rules) is applied. For role-based security settings, see Security Administration.

Examples

To update the list price of a Product related to a Price Book

https://crm.zoho.com/crm/private/xml/PriceBooks/updateRelatedRecords?authtoken=Your Authenticaton Token&scope=crmapi&id=Price Book ID&relatedModule=Products&xmlData=<Products><row no="1"><FL val="PRODUCTID">508020000000061987</FL><FL val="list_price">100.00</FL></row></Products>

Response Format

<response uri="/crm/private/xml/PriceBooks/updateRelatedRecords">
<result>
<status>
<code>200</code>
</status>
<success>
<code>4800</code>
</success>
<updated-ids>[508020000000061987]</updated-ids>
</result>
</response>

Share this post :

FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocrm.com