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 / Liquid tags not return...
Power Pages
Answered

Liquid tags not returning results

(0) ShareShare
ReportReport
Posted on by 175

Hello,

I have added this liquid template code in my PowerApps Portal page but not returning results

 

{% assign account = entities.Vendors['8d0b431e-97c6-ea11-bf21-0003ff906c75'] %}
 {% if account %}
 {{ account.Vendor_Name }}
{% endif %}

 


Just wanted to access Vendors entity single record by ID 

Categories:
I have the same question (0)
  • H V Profile Picture
    1,510 on at

    Hi @Dhananjay_Patil 

     

    You have to add logical name of the entity entities.logicalname instead of Display name.

    {% assign account = entities.account['936DA01F-9ABD-4d9d-80C7-02AF85C822A8'] %}
    {% if account %}
    	{{ account.name }} 
    {% endif %}

     

    Please provide logical name of entity and fields. So, I can help you more.

  • Dhananjay_Patil Profile Picture
    175 on at

    Hello @hardikv 


    I am new to PowerApps , don't know from where to get logical name of entity

    Adding Entity information screenshots 

    Screen Shot 2563-07-21 at 13.16.00.png
    Screen Shot 2563-07-21 at 13.11.27.png
    Screen Shot 2563-07-21 at 13.15.33.png
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    is vendors a custom entity? 

    you be be missing the prefix there, for example:

    {% assign myRecord = entities.cr9c9_customentity['{F0ACC416-29CB-EA11-A812-000D3A22C11A}' %}
    <p>{{ myRecord.cr9c9_name }}</p>
  • H V Profile Picture
    1,510 on at

    Hi @Dhananjay_Patil 

    Please try below code:

     

    {% assign account = entities.cr305_vendors['8d0b431e-97c6-ea11-bf21-0003ff906c75'] %}
    {% if account %}
    	{{ account.cr305_name }} 
    {% endif %}

     

     

    Make sure that you have created entity permission for Vendors(cr305_vendors) entity.

     

     

    If you like this post, give a Thumbs up. Where it solved your query, Mark as Solution so it can help other people. 

  • Dhananjay_Patil Profile Picture
    175 on at

    Hello @hardikv 

    Tried same but not getting vendor name printed.

    adding Entity permission screenshots also

    Screen Shot 2563-07-21 at 14.03.06.png
    Screen Shot 2563-07-21 at 14.02.33.png
  • H V Profile Picture
    1,510 on at

    Did you clear the cache?

  • Dhananjay_Patil Profile Picture
    175 on at

    @hardikv  

    Yes already cleared cache

  • Verified answer
    Dhananjay_Patil Profile Picture
    175 on at

    @OliverRodrigues 

    Yes vendors is custom entity

    I tried below code 

    {% assign account = entities.cr305_vendors['8d0b431e-97c6-ea11-bf21-0003ff906c75'] %}
     {% if account %}
     <p> Came here </p>
     <p> {{ account.cr305_name }} </p>
     {% endif %}


    came here printing but not name  

    I already set entity permissions also and already cleared cache also

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    okay your code is working.. now I am just wondering which one is the "name" attribute for your entity.. if it is the first column below, it is empty.. so it won't show any data

    can you check if your data is correct.. also if the logical name is cr305_name ?

    vendors.PNG

     

    just curiosity.. you have a GUID on the second column there.. is that a legacy data or something? it is just not very common for us t store GUID as text in CDS

  • Dhananjay_Patil Profile Picture
    175 on at

    @OliverRodrigues 

    I am trying to access Vendor_Name record using ID

    please find attached screenshots for Entity Data.

    Column having ID string is auto generated, I am not adding any string manually in it

    Screen Shot 2563-07-21 at 13.16.08.png
    Screen Shot 2563-07-21 at 13.15.33.png

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 31

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard