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 Apps / Open related records i...
Power Apps
Unanswered

Open related records in a dialog

(0) ShareShare
ReportReport
Posted on by 70

I am trying to create a custom button on the command bar that when clicked shows the related records in a view. I can open the view in the dialog but can't figure out if there is a way to filter it.

 

Any help is appreciated!

 

Thanks

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Have you considered using the new Custom Pages feature to accomplish this?

     

    You could open the page as a side panel or as an overlay, easily defined in your navigateto request...

    You could quickly create any custom filtered view you want in an easy canvas apps experience...

    And you could trigger the opening from your ribbon button using Javascript or even simple PowerFX syntax...

     

    Pretty cool stuff.

  • Ram Prakash Duraisamy Profile Picture
    5,586 Super User 2025 Season 2 on at

    Hello @tchristy99,

     

    There was an awesome behavior which was launch recently. 

     

     

    Xrm.App.sidePanes.createPane({
    title: "Accounts",
    paneId: "AccountList",
    canClose: true
    }).then((pane) => {
    pane.navigate({
    pageType: "entitylist",
    entityName: "account",
    })
    });

     

    Try using the above function to open it in Side Pan instead of Dialog.

     

    Let me know if you want a dialog still, i can help you out.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

  • TC-26111857-0 Profile Picture
    70 on at

    Hi!

     

    @cchannon I did think about that and it is my backup plan, but I would prefer it to be a model view.

     

    @rampprakash this is actually better! But it still doesn't show a filtered view. Any thoughts on that?

  • cchannon Profile Picture
    4,702 Moderator on at

    That pane navigation is in the same feature set as the new Custom Pages. They are not documented perfectly yet, but the documentation does reference that the pane.navigate method is 'similar' to navigateTo. If it is similar enough, then it should also accept a viewId input the same as navigateTo.

  • TC-26111857-0 Profile Picture
    70 on at

    How does the ViewId work? Where do I find the ViewId of my views?

  • cchannon Profile Picture
    4,702 Moderator on at

    You can get the View Id by opening the view for edit in the classic editor and looking at the URL. Near the end of the URL you will find a urlencoded string for the Id. Copy the GUID from there and that is the view ID.

     

    It will look something like: 

    ...id=%7Bd5d926d9-5d3a-471d-9c19-4ff7772afbe5%7D

     Where the ID is the d5d926d9-5d3a-471d-9c19-4ff7772afbe5 portion in the middle there.

  • TC-26111857-0 Profile Picture
    70 on at

    Excellent, thank you

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard