So I am trying to get the current users User License eg. System Administrator or User etc... I have look through here and used other methods however these don't seem to work for me. I was wondering where I could make a start towards this?
The error I get is:
Comparison arguments must be compatible types: Schema.SObjectField, String
From using the following code:
public String getOpps() {
if(Profile.UserLicense.Name === 'Community Customer') {
oppCheck = true;
} else {
oppCheck = false;
}
***loop*** {
code here
}
} else {
more code here
}
return 'nil';
}