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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Liquid tags not return...
Power Pages
Unanswered

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 

  • oliver.rodrigues Profile Picture
    9,368 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

  • 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,368 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard