You need to sign in to do that
Don't have an account?
Arman
What is the Update method of SforceClient for?
Hi There,
I am very new to the Salesforce Ajax toolkit. Could someone please explain to me what is the purpose of the Update method?
I thought maybe if you have say: "an id of a Contact" and then you want to get More Info about that contact what you do is you create a Contact Dynabean and set the id to it. Then put it in an array and pass it to the Update method. All great and works, but I can't figure out what the update does. This update method isn't there to update the content of tables is it? Because the Save method of Dynabean can decide between creating a new record or updating a record.
Thanks in advance
I am very new to the Salesforce Ajax toolkit. Could someone please explain to me what is the purpose of the Update method?
I thought maybe if you have say: "an id of a Contact" and then you want to get More Info about that contact what you do is you create a Contact Dynabean and set the id to it. Then put it in an array and pass it to the Update method. All great and works, but I can't figure out what the update does. This update method isn't there to update the content of tables is it? Because the Save method of Dynabean can decide between creating a new record or updating a record.
Thanks in advance
Hi Arman,
query() is for reading information about a record.
update() is for writing data to salesforce (updating the record).
insert() is for creating a new record
also check upsert(), search() and delete()
- best place to learn about this is by reading the API docs
http://www.sforce.com/us/docs/sforce70/wwhelp/wwhimpl/js/html/wwhelp.htm
Cheers
Gareth.