Activity Forums Salesforce® Discussions Update specific field of an object using .NET tool kit

  • Update specific field of an object using .NET tool kit

    Posted by Karen on March 17, 2016 at 9:59 am

    I have to update some specific fields in object through force.com .NET toolkit. I do not want to pull all fields and update all fields. Any way to avoid updating all fields?

    Rahul replied 2 years ago 3 Members · 3 Replies
  • 3 Replies
  • Neha

    Member
    March 22, 2016 at 10:08 am

    One option would be to create new objects with just the fields you want to update.

    Example:-
    // annonymous types
    var success = await client.UpdateAsync("Lead", lead.Id, new { Name = "Test Update" });

  • Rahul

    Member
    October 28, 2022 at 10:35 am

    To update specific field of an object, 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" });
    `

  • Rahul

    Member
    October 28, 2022 at 10:38 am

    To update the specific field of an object, you need to create new objects with just the fields you want to update. You could either use strongly typed POCO or annonymous types.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos