+ Start a Discussion
kalyforminkalyformin 

Checkbox Salesforce API

Does anyone know how we can update a checkbox in Salesforce as 'checked'? We are using  C#.Net toupdate Salesforce data but unable to find the correct syntax for setting the checkbox value to checked

 

Any help is appreciated.

 

 

aalbertaalbert

Checkboxes are boolean values in the API. 

Here is a link to some helpful .NET samples.

 

 

werewolfwerewolf

In .net setting a checkbox field is a 2-step process.  First you set the field itself to true, but you also have to set the corresponding specified flag to true.

 

See for example:

 

http://community.salesforce.com/sforce/board/message?board.id=NET_development&message.id=4413&query.id=71074

Message Edited by werewolf on 02-10-2009 03:52 PM
kalyforminkalyformin

setting both properties to true worked.

 

Thank you for all yoru help!