You need to sign in to do that
Don't have an account?
Nils11
I am using this code but owner not changing
How to change owner of lead as current owner in javascript ?
var LeadToUpdate = new sforce.SObject("Lead"); LeadToUpdate.Id = "{!Lead.Id}"; LeadToUpdate.OwnerId = '{!$User.Id}'; sforce.connection.update([LeadToUpdate]);
I am using this code but owner not changing
To get current user in Javascript use below code:
Hope this helps!!!
Thanks,
Gaurav
Skype: gaurav62990