I read here that we can access ObjectType from Global Variable.I want to check if the user able to edit Account using updateable .But how to write it?
I tried this
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
console.log('@Test ==='+{!$ObjectType.Account.updateable});
It throw me this error.
Error: Field updateable does not exist. Check spelling.
So I copy paste this just to test
{!$ObjectType.Account.fields.Name.Label}
Also it throw me error.
Error: Field Account.fields.Name.Label does not exist. Check spelling.
What is the correct way to use Global Variable in Javascript?