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 / Adding variables onto ...
Power Pages
Unanswered

Adding variables onto any part of a Power Page

(0) ShareShare
ReportReport
Posted on by 23

I am getting my head around Power Pages and am a bit underwhelmed with it's lack of flexibilty to display data on a page where you don't want it to be a simple form or in a list format. If I was, for example, to create a visual welcome page that's personalised to a user logged in, how do I best go about it? To keep it simple, how do I add their name to a page!?  Am really familiar with Power Canvas apps, but Power Pages seems to be a different beast.

samhegartyunsw1_0-1663126148221.png

 

Categories:
I have the same question (0)
  • Hugo Bernier Profile Picture
    Microsoft Employee on at

    Hi @samhegartyunsw1 , seems that you're looking for Liquid templates, which allows you to do all the things you mentioned. 

     

    Take a look at this article, it should get you started. Just use the code editor view to insert liquid statements in your page.

     

    I hope it helps?!

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Depending on what you are trying to do depends on if you would define a Web Template or just use some liquid in the Content block.  note: Liquid should be used sparingly in a Content Block but sometimes it makes sense e.g. to say hello "portal user first name"

    {% if user %}
    Hello {{ user.firstname }}
    {% else %}
    Some other text here
    {% endif %}

    Note, in the above the IF statement checks that the 'user' object exists which means the user is logged in.

  • samhegartyunsw1 Profile Picture
    23 on at

    Thanks @Fubar and @hugobernier , I'll check Liquid out. I have in mind a portal which displays a wide range of Dataverse info to a student including their courses, recent activity happening in their courses, profile information and notifications. Just getting my head around if Power Pages or a Canvas app would be the best for this.

  • samhegartyunsw1 Profile Picture
    23 on at

    Thanks @Fubar and @hugobernier , I'll check Liquid out. I have in mind a portal which displays a wide range of Dataverse info to a student including their courses, recent activity happening in their courses, profile information and notifications. Just getting my head around if Power Pages or a Canvas app would be the best for this.

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

    hi@samhegartyunsw1 

    did you get the liquid working? the way I like to see between Canvas App VS Power Pages is the following:

    • Power Pages - expose D365/Dataverse data to external users / leverages model-driven app capabilities
    • Canvas Apps - internal users / connects to pretty much any database / build forms from scratch (more flexibility but also a lot more work)
  • samhegartyunsw1 Profile Picture
    23 on at

    I did thanks Oliver. It's good for basic things but agree with your comparison. I'm hoping eventually that Power Pages takes the best of what Canvas apps offer. Ideally there would be a base template and site structure like what Pages has but be able leverage the ability to better display data like you get with Canvas. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 64

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard