Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
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
  • Pedro-Rodriguez Profile Picture
    22 on at
    Re: How do I fecht URL query params in liquid in order to index a data entity?

    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.

  • Verified answer
    - Matt Bayes - Profile Picture
    91 on at
    Re: How do I fecht URL query params in liquid in order to index a data entity?

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35