Conditional Renderring by Id

  • 1
  • Problem
  • Updated 4 years ago
  • Acknowledged
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 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

  • 44,006 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.