My developer is off for the week and I need to change a wee bit of code. I do not know much Apex.
Current code to make Admin exempt
//System Admin is exempt, 00e80000000k3t2AAA id of System Admin Profile
if(UserInfo.getProfileId() == '00e80000000k3t2AAA'){
System.debug('Admin exempt from Invoice & Billing Period validation.');
return true;
}
All I want to do is just change the Admin ID to a custom profile ID so users can continue their work.
When I change the ID to
//System Admin is exempt, 00e80000000k3t2AAA id of System Admin Profile
if(UserInfo.getProfileId() == '00e80000001SQTxAAA'){
System.debug('Admin exempt from Invoice & Billing Period validation.');
return true;
}
It will not let the user under that profile be exempt.
I have tried id 00e80000001SQTxAAA
and 00e80000001SQTx
.
Any ideas of how to get the custom profile id to work?