1

I don't want to update all fields on the object (Lead/Contact) I am updating, is there any way to avoid that?

I am trying to avoid having to pull all the fields from Salesforce just to update them again.

1

One option would be to create new objects with just the fields you want to update. You could either use strongly typed POCO or annonymous types.

E.g.

// annonymous types
var success = await client.UpdateAsync("Lead", lead.Id, new { Name = "Test Update" });
  • 2
    I used dynamic c = new ExpandoObject(); but same principle. – Dale K Mar 9 '16 at 23:17

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.