web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How do I fecht URL que...
Power Pages
Answered

How do I fecht URL query params in liquid in order to index a data entity?

(0) ShareShare
ReportReport
Posted on by 22

Hi,

 

I am just starting with Power Portals and I have this question. In one page I have a list component where I display an entity, when I click in one record I want to show the details in another page. 

 

With this code I can access the entity:

 

{% assign object = entities.cr21d_object['90153843-bb6c-eb11-8fed-0003ff1d219a'] %}
{% if object %}
Object found
{{ object.cr21d_name }}
{% endif %}
 
but I am missing the point who I get the ID that I see in the URL query in order to pass through the appropiate id.
 
The query looks like this:
 
xxxx.powerappsportals.com/objects-1/view-objects-1/?id=90153843-bb6c-eb11-8fed-0003ff1d219a
Categories:
I have the same question (0)
  • Verified answer
    - Matt Bayes - Profile Picture
    91 on at

    Hi Pedro,

     

    There is an object in liquid called "request". The "request" object contains all information about the URL, parameters, etc. that you will need.

    In order to retrieve the parameter, all you need is the following line:

    {% assign requestId = request.params.id %}


    If your parameter was called "recordid", for example, the code would look like:

    {% assign requestId = request.params.recordid %}

     

    I hope this helps, and feel free to ask me any questions you might have!

    Thanks!

     

    Matt Bayes

  • Pedro-Rodriguez Profile Picture
    22 on at

    Hi Matt,

     

    Thanks. I already solved it in a similar way:

     

    <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;">
     {% assign objectId = request.params['id'] %}
     {% assign object = entities.cr21d_object[objectId] %}
     {% if object %}
     <b>Store</b>
     {{ object.cr21d_name }}</p>
     <b>Country</b>
     {{ object.cr21d_country }}</p>

    Apart from that I had to assing Entity Permissons in the Portal Management or I would get empty results.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 47 Super User 2026 Season 1

#2
sannavajjala87 Profile Picture

sannavajjala87 14 Super User 2026 Season 2

#3
SP2019admin Profile Picture

SP2019admin 12

Last 30 days Overall leaderboard