I am using rest/v1/leads.json POST endpoint to update and get lead ids by emails. My input parameter is a list of emails. In the response, I get a list of ids back, but I am unable to tell which id belong to which email. Is there a way to get a response what maps emails to ids in a batch call?
Solved! Go to Solution.
Oh, I didn't realize the result was ordered the same as request. Is the ordering always guaranteed? I can't find anything about it on the API documentation, maybe I am missed it. Is it documented anywhere?
Hello @dvorontsov ,
In a separate call (since Sandy answered the mapping and order part); for situations where you have ID's, but want to query other info you can use a GET call and pass the ID's to get those records back using Filter type and Filter values.
Be sure to include fields you want such as email as fields to return.
Thank you, that is helpful to know!
My current problem is to get a mapping from list of email and list of ids. I didn't know about the ordering part, and trying to verify if it's mentions in the documentation.
Not sure why you'd expect it to be explicitly doc'd... the request array-response array paradigm is a universal thing. It would be shocking for the the order to be arbitrary!