This question is inspired by this Post. Can anyone enlighten me more about "object prepend" mentioned in this post.
So in an example URL like https://na10.salesforce.com/a0B/e?CF00NA0000005JzZX=Master1&CF00NA0000005JzZX_lkid=a0AA0000002CtHk&retURL=/a0AA0000002CtHk
that a0B
is the object Prepend. I am not clear what is it. Does it change from one org to another (like Ids). If yes, then i need to find a way to get it dynamically in the custom button code.
Post mentions that object prepend can be obtained dynamically, using
Schema.getGlobalDescribe().get('Contact').getDescribe().getKeyPrefix()
the custom button i am creating, executes javascript on click. From there, how do i use Schema.getGlobalDescribe ? I have tried {!REQUIRESCRIPT("/soap/ajax/22.0/apex.js" )}
but it is not the solution (I get "Schema is undefined").
Any suggestions on what is this object prepend and how to get it dynamically in a javascript button would be helpful. I am new to salesforce, and this forum is awesome and super helpful.