cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ihabkhiri1
Regular Visitor

Query string parameter of a record

How do I find the record ID string query parameter of a column (Account table - Parent Account column) in Portals? 

1 ACCEPTED SOLUTION

Accepted Solutions
chleverenz
Super User
Super User

 Hi @Ihabkhiri1 ,

if the request is something like https://myportal.powerappsports.com/?id=12345

you can get the value of the get-parameter id in liquid with 

{% assign myid = request.params["id"] %}

if this id is an accountid you can get the parentaccount by using

{% assign myparentaccount = entities.account[myid].parentaccountid %}

if myparentaccount is filles, myparentaccount.id will be the id of the parentaccount.

Details on this can be found for example here: https://docs.microsoft.com/en-us/power-apps/maker/portals/liquid/liquid-objects#entities 

 

Hope this is an answer to the question. If not, may be you answer with a little bit more details on your requirements 🙂

 

Have fun,

  Christian

View solution in original post

1 REPLY 1
chleverenz
Super User
Super User

 Hi @Ihabkhiri1 ,

if the request is something like https://myportal.powerappsports.com/?id=12345

you can get the value of the get-parameter id in liquid with 

{% assign myid = request.params["id"] %}

if this id is an accountid you can get the parentaccount by using

{% assign myparentaccount = entities.account[myid].parentaccountid %}

if myparentaccount is filles, myparentaccount.id will be the id of the parentaccount.

Details on this can be found for example here: https://docs.microsoft.com/en-us/power-apps/maker/portals/liquid/liquid-objects#entities 

 

Hope this is an answer to the question. If not, may be you answer with a little bit more details on your requirements 🙂

 

Have fun,

  Christian

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Users online (5,290)