function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
How to get profile id ot Name in java script ?
I am using java script in home page component.
Just try this
var result = sforce.connection.query("select id from profile where Name='System Administrator'");
var records = result.getArray("records");
if (records.length != 1) throw "unable to find id";
var id = records[0].Id;
the Var id will contains profile id.