function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hamayoun65hamayoun65 

VLOOKUP in VisualForce

Hi all

 

According to the docs, this is supported in VF.  I get a compile error whenever I try and use it,  For example, here I am trying to do a lookup to the User object:

 

{!vlookup( $ObjectType.User.Fields.Name, $ObjectType.User.Fields.Id, hist.CreatedById )}

 

The compile error I get is:

 

"Error: Function VLOOKUP may not be used in this type of formula"

 

Any ideas out there?