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

Community site session details

Session Id : w5TN1aIr3CllBAAiudpqUG
Power Pages - Power Apps Portals
Unanswered

Querying records using liquid objects

Like (0) ShareShare
ReportReport
Posted on 9 Jul 2020 15:57:47 by 136

Hi all,

 

I'm trying to get a contact record from a id coming in the url the following code is what I have inside of mine Copy (HTML) field in my web page:

 

the365bit_0-1594310055983.png

the first out put "{{id}}" is there but the mobilenumber it's not, I already checked the id 100 times and it's correct so any ideas of what might be hapenning?

 

 

I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,347 Most Valuable Professional on 09 Jul 2020 at 20:53:06
    Re: Querying records using liquid objects

    exactly, by default the portals create an entity permission to the contact entity but with the scope self 

    so this wouldn't give the access you need, you need to create a new one or change the existing one

  • the365bit Profile Picture
    136 on 09 Jul 2020 at 17:26:51
    Re: Querying records using liquid objects

    For future notice,

     

    the problem was because I didn't have entity permissions set for the entity that I was querying.

     

    In order to fetch data at least "read" permission should be set in the entity permission map and a web role needs to be associated with it.

     

    https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-permissions/

  • H V Profile Picture
    1,510 on 09 Jul 2020 at 16:40:15
    Re: Querying records using liquid objects

    Hi @the365bit

    Please refer below code:

    {% assign contact = entities.contact[request.params['id']] %}

    {% if contact %}

    {{ contact.fullname }} 

    {{ contact.mobilenumber }} 

    {% endif %}

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Pages

#1
Jon Unzueta Profile Picture

Jon Unzueta 119 Super User 2025 Season 2

#2
KevinGador Profile Picture

KevinGador 34 Super User 2025 Season 2

#3
SwatiSTW Profile Picture

SwatiSTW 24 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete