3

I know to get the prefix of object id in apex using the Schema.

But I want to know the way to get the prefix of the object Id in Java Script custom List view button.

Thanks, Suresh.

1 Answer 1

3

You have to use a global variable $ObjectType:

alert('{!$ObjectType.YourObject__c}');

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .