I have a field on the User object that users their Role's name to produce a text output.
When I try to reference this field in a visualforce page I get the titular error.
How can I reference this text field? Thanks!
Field BusinessUnit__c:
IF(CONTAINS( UserRole.Name , "Uno"), "Sales",
IF(CONTAINS(UserRole.Name, "Dos"), "Sales",
IF(CONTAINS(UserRole.Name, "Tres"), "Support",
IF(CONTAINS(UserRole.Name, "CEO"), "Exec",
"Shared"))))
Visualforce:
<apex:outputLink value="/00O38000004hhNw?pv0={!$User.BusinessUnit__c}" id="theLink">
Error:
Error: Field UserRole.Name does not exist. Check spelling