0

I'm trying to find if it's possible to use SalesforceIQ's API to retrieve a Contact object by address. According to the documentation I can retrieve an object by Id, email or phone number. But can I use contact address for this purpose?

I have already tried:

curl 'https://api.salesforceiq.com/v2/contacts?properties.address=some_address'

But I'm getting following:

{"statusCode":400,"errorMessage":"Invalid Query Parameter(s): properties.address","userMessage":"Bad Request"}

Or maybe there are other ways to do that?

  • 1
    Contact object does not have "Address" as property. Instead MailingAddress and OtherAddress. – Reshma Sep 30 '16 at 5:05
2

Address field is a compound field and I don't think you can access it directly even with api. You can try using "City", "State" and others to do data query.

https://developer.salesforce.com/docs/atlas.en-us.202.0.api.meta/api/compound_fields_address.htm

  • can you provide an example, because every time when I'm trying to get contact by 'city' I receive "Invalid Query Parameter(s)". – Артём Гуляев Sep 30 '16 at 9:08
  • Try with MailingCity or OtherCity. – Reshma Sep 30 '16 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.