Suppose I send a GET request to the following endpoint:
If there is only one contact with that email, the response I get from the API contains all the fields for that contact. But if there is more than one match, the response looks like this:
[ "/services/data/v39.0/sobjects/Contact/00Q6F0000144bUxUAI", "/services/data/v39.0/sobjects/Contact/00Q6F0000144bEFUAY" ]
Is there any way to force the initial request to always return the fields from the first contact, ignoring the rest?
Otherwise I need to look into the response, extract the contact ID, and make a second GET request, which I really would love to avoid.
Any ideas? Thanks!