You need to sign in to do that
Don't have an account?
Mustafa Top
How to get record name that is known its id without the consume from soql governor limit?
String aid = '001c0000002bXcc';
Account a = new Account(id=aid);
System.debug(a.name);
The debug line is empty. How to get record name?
You can not get other fields using this method. You can only assign values to other field and update that record.
We can not do it