You need to sign in to do that
Don't have an account?

"Id of current record" is not defined
Hi all!
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')} {!REQUIRESCRIPT('/soap/ajax/29.0/apex.js')} try{ var user = sforce.connection.getUserInfo(); var STE = new sforce.SObject("Object__c"); STE.Id={!package_prefix__Object__c.Id}; } catch(er) { alert(er); }
Please let me know if this helps.
Thanks
All Answers
Please let me know if this helps.
Thanks