Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

Update Date values in Salesforce Custom button

Update Date values in Salesforce Custom button

Be First!

Update Date values in Salesforce Custom button

to example to update the date custom field called AssignementDate__c field in Lead object then use the below code in the custom button logic

var lead = new sforce.SObject(“Lead”);
lead.AssignementDate__c = new Date();
lead.Id = “{!lead.Id}”;
updateLead = sforce.connection.update([lead]);

(1)

Previous
Next

Leave a Reply