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 / Display messages when ...
Power Pages
Suggested Answer

Display messages when picking a case

(1) ShareShare
ReportReport
Posted on by 2
I'm using the cases table allowing authenticated users to see their logged cases. I also have a custom message table allowing users to view and send messages associated to a case. I want the user to be able to select their case from a list of their cases, which then displays all messages associated to that users selected case. I am using the new version of power platform. This should be simple but AI is sending in circles. Any help would be greatly appreciated as I'm sure this is not an uncommon scenario. Thank you
Categories:
I have the same question (3)
  • PA-23010703-0 Profile Picture
    Microsoft Employee on at
    Test response
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,394 Most Valuable Professional on at
    Hi, are you using the Customer Service template? or is this a Blank/Starter template?
     
    Are messages a table in the timeline? Or what are "messages"?
  • Suggested answer
    Suriyanarayanan V Profile Picture
    139 on at

    You can absolutely do this in Power Pages, and it’s a very common pattern:

    User selects one of their cases → system shows only the messages related to that case.

    The key is that Power Pages doesn’t automatically “cascade” table permissions.
    You need two separate table permissions, both tied to the logged‑in Contact.

    Step 1 — Make sure the user can only see their cases

    Create a Table Permission for the Case table:

    • Table: Case

    • Access Type: Contact

    • Relationship: Customer (or whichever lookup links Case → Contact)

    • Privileges: Read

    Assign this permission to the user’s Web Role.

    This ensures the list only shows their cases.

    Step 2 — Create a Table Permission for the Messages table

    This is the part most people miss.

    Your Messages table must also have a permission that ties it back to the Case.

    Example:

    • Table: Message

    • Access Type: Parent

    • Parent Table Permission: Case

    • Relationship: Case → Message (your lookup field)

    • Privileges: Read, Create (if they can send messages)

    Assign this to the same Web Role.

    This tells Power Pages:

    “Only show messages where the parent Case is one the user is allowed to see.”

    Step 3 — Use a List + Form or List + Web Template to show messages

    Once permissions are correct, the UI becomes simple:

    Option A — Use a List with a Filter on the Case lookup

    If your Messages list is on a page like /case-messages?id={{caseid}},
    set the list filter to:

    Case (lookup) equals QueryString: id
    

    Option B — Use a Web Template with Liquid

    If you prefer Liquid:

    {% assign caseId = request.params.id %}
    {% fetchxml messages %}
    <fetch>
      <entity name="new_message">
        <attribute name="new_text" />
        <filter>
          <condition attribute="new_case" operator="eq" value="{{ caseId }}" />
        </filter>
      </entity>
    </fetch>
    {% endfetchxml %}
    
    {% for m in messages.results.entities %}
      <p>{{ m.new_text }}</p>
    {% endfor %}
    

    Either approach works once permissions are correct.

    Common mistake (likely your issue)

    If you only set permissions on Case, the Messages table will return zero rows, even if the user owns the Case.

    Power Pages never assumes child‑table access — you must explicitly configure it.

    Summary

    Yes, this scenario is fully supported, even in the new Power Pages experience.
    Just ensure:

    1. Case → Contact‑based permission

    2. Message → Parent‑based permission referencing Case

    3. Your list or Liquid filters by the selected Case ID

    Once those three pieces are in place, everything works exactly as expected.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 37

#2
Fubar Profile Picture

Fubar 30 Super User 2025 Season 2

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 26 Most Valuable Professional

Last 30 days Overall leaderboard