Update sfdcLeadId using REST API | Community
Skip to main content
Level 1
September 13, 2022
Solved

Update sfdcLeadId using REST API

  • September 13, 2022
  • 1 reply
  • 1795 views

Hey Gurus,

Background:

I have a site that creates leads in both Marketo and Salesforce, ended up creating leads in both system due to time criticality. The default sync between from Marketo to Salesforce is anytime between 2-15 mins.

Question:

I can use REST API to lookup LeadInfo from Marketo, is there a way I can populate the Salesforce Lead Id on to Marketo record and then release the sync to allow future sync to happen automatically.

I tried the endpoint - {{baseURL}}/v1/leads.json? with below body, but it doesn't seem to update the relevant SFDC fields in marketo.

{ "action":"updateOnly", "lookupField":"email", "input":[ { "email":"test-20512-07@example.com", "firstName":"John-1", "lastname":"Fraser", "Marketo_Id__c":"33333333333", "postalCode":"2000", "sfdcLeadId":"00Q2O001234ZDqjLLF", "Sync_to_Marketo__c":true, "Sync_to_Marketo__c_lead":true } ] }

 

Are the SFDC fields non updatable ? has anyone worked on similar manual rest between systems before.

TIA

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

No, you cannot do this. The SFDC ID field is a system field (more of an ETL identifier than a direct parallel to a single SFDC ID, since it changes during merges and conversions). Not updateable in userland.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 13, 2022

No, you cannot do this. The SFDC ID field is a system field (more of an ETL identifier than a direct parallel to a single SFDC ID, since it changes during merges and conversions). Not updateable in userland.