Id not being passed into URL when clicking button to open new page

  • 1
  • Problem
  • Updated 7 months ago
  • Solved
We have upgraded our sandbox instance to Millau. We have a button that when clicked, goes to a url in a separate page.

Action below.

/apex/skuid__ui?page=Engagementplan&Id={{{{Id}}}}

As an admin, when i test this button, it works correctly, and the Id gets populated in the URL. See below

https://skuid.cs85.visual.force.com/apex/skuid__ui?page=Engagementplan&id=001w000001EuB3SAAV

As a non admin, but a skuid page viewer, when I click this button, it opens the new page, but doesn't populate the URL with an Id, it simply adds a } See below

https://skuid.cs85.visual.force.com/apex/skuid__ui?page=Engagementplan&Id=}

This doesn't seem to be happening in production (not yet on Millau). Any ideas for the Id isn't getting passed into the URL?

Thanks

Glenn
Photo of Glenn Daly

Glenn Daly

  • 1,270 Points 1k badge 2x thumb
  • confused

Posted 7 months ago

  • 1
Photo of Adam Edmonds

Adam Edmonds

  • 454 Points 250 badge 2x thumb
Maybe the field security setting for the field on the Skuid Page Viewer's user profile?
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
Did you try to use {{Id}} or {{{Id}}} instead? Is there a specific reason why you used four curly braces?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
The users profile access to the object or record in question.

What's odd is the use of quad curly braces. Both dual and triple would work, but I'd think quad would fail.
Photo of Glenn Daly

Glenn Daly

  • 1,270 Points 1k badge 2x thumb
It was the curlies, thanks all for your input! Out of interest, why are quad curlies working in our production instance, but not in sandbox?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Very good question. It shouldn't imho.
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
To be honest, I don't know. However, it's not supported, compared to double or triple curly braces. Please find more information in our documentation here: https://docs.skuid.com/latest/en/skuid/merge-syntax
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
Please find more information in our documentation here: https://docs.skuid.com/latest/en/skuid/merge-syntax
Photo of Mike Dwyer

Mike Dwyer

  • 3,390 Points 3k badge 2x thumb
We had a number of instances where double braces worked in v9.5 but required a change to triple braces in v11.6.