3

We have a connected app that is updating records through the Rest API using c#. I would like to not have to use the ID to set a lookup field and instead use the name. In an upsert, what I am describing would look like this: Object__r.Name = "Rest API Update Name", however, I can not seem to make a relationship update using the Rest API. Am I using it wrong, or is that a limitation of the API?

1 Answer 1

2

My understanding is that you can only set the lookup relationship field using either:

  • the exact record Id, or by
  • using an external Id field on the object you are referencing.

The Name field wouldn't meet the external id requirement.

See Give lookup field External Id in JSON request.

1
  • Perfect, that was the answer I was seeking. Thank you Daniel. Edit:Spelling Oct 1, 2015 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .