I'm trying to pass the user id in the url for the visualforce page.

  • 1
  • Question
  • Updated 10 months ago
  • Answered
When logging in, the user id needs to be included in the url for the correct data to populate on this skuid page. The apex code below renders the url as "CAS_Child_Profile&id=0000000000000"

<apex:page standardController="User" recordSetVar="c"
extensions="skuid.Redirects" action="{!redirect}&page=CAS_Child_Profile&id={!User.id}">

</apex:page>

Please help!


Photo of Tiara

Tiara

  • 70 Points

Posted 11 months ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 13,280 Points 10k badge 2x thumb
Tiara,

For the 'id' parameter, please try:  {!$User.Id}

If that does not work, then you can access the Running User Id on any Skuid page using their merge variable:  {{$User.userId}}

Thanks,

Bill
Photo of Tiara Peele

Tiara Peele

  • 80 Points 75 badge 2x thumb
{!SUser.Id} worked.

Thanks!