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

    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