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 Answer 1

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" });
1
  • 2
    I used dynamic c = new ExpandoObject(); but same principle.
    – Dale K
    Mar 9, 2016 at 23:17

You must log in to answer this question.

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