SOLVED

Using REST api ,can we update the lead using lookupfield as leadId insead of email field

Go to solution
Anonymous
Not applicable

Hi,

While i am updateing the lead,i am facing some issue  as i have many leads with same email,hence i want to update the lead using leadid which seems to not possible using Rest API

Tags (1)
1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

POST <ep>/rest/v1/leads.json


     "action":"createOrUpdate",

     "lookupField":"id",

     ...

}

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

POST <ep>/rest/v1/leads.json


     "action":"createOrUpdate",

     "lookupField":"id",

     ...

}

Stijn_Heijthuij
Level 7

Hi Pradeep,

Not being a coder myself I can't fully answer your question. A quick search in the blog posts in the Developers section suggests that this should be possible.

Take a look at this post: http://developers.marketo.com/blog/synchronizing-lead-data-changes-using-rest-api/

Lead ID is one of the default fields in the instance. To find all field names, have a look here: Field Names » Marketo Developers

Hope this helps at least a little.