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

  • 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 kapoor

    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 kapoor

    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

Salesforce Admin Certification 2020 Questions Explained with References - Part II

Video in

How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…