function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swati BhaipSwati Bhaip 

Lead Update

how to update record in Lead using java program??
Ashish_SFDCAshish_SFDC
HI Swati, 


From the Salesforce docs:


Certain records cannot be updated via the API. To update a record via the update() call, its object must be configured as

updateable (updateable is true). To determine whether an object can be updated, your client application can invoke the

describeSObjects() call on the object and inspect its updateable property.
Link:
http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_calls_update.htm?SearchType=Stem

You can try checking if this object can be updateable.

Also See the update call, 

https://www.salesforce.com/us/developer/docs/api_rest/Content/dome_update_fields.htm


Regards,
Ashish
Kripa Sindhu SinghKripa Sindhu Singh
HI Swati,

To update certain records from external source on salesforce you can use Toolkits provided by the salesforce for you application 

https://developer.salesforce.com/page/Web_Services_API
gsmithfarmergsmithfarmer
For java see https://developer.salesforce.com/page/Introduction_to_the_Force.com_Web_Services_Connector . The examples are clear and the [process is simple.

For Python see SQLForcee at http://www.capstorm.com/main/index.php?option=com_content&view=section&layout=blog&id=7&Itemid=62
It's free, works with Python 2.7 and 3.*, and will do the work in 3 lines of code.