+ Start a Discussion

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?