Conditional Renderring by Id

  • 1
  • Problem
  • Updated 5 years ago
  • Acknowledged
Photo of Pat Vachon

Pat Vachon, Champion

  • 46,404 Points 20k badge 2x thumb

Posted 5 years ago

  • 1
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,026 Points 5k badge 2x thumb
Hey Pat,

Open Developer Console and execute this anon Apex: System.debug(UserInfo.getProfileId());

You'll see that the 18 character Id is returned. I bet internally Skuid is comparing the result of getProfileId() with the Value specified.

Cheers, Irvin
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 45,308 Points 20k badge 2x thumb
Yup.  You need to use the 18 character ID if you are building conditions on User. 

I keep a skuid page handy that shows users and ID.  For me its more striaghtforward than remembering the anonymous apex.