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 / Getting dashboard cont...
Power Apps
Answered

Getting dashboard control through code

(0) ShareShare
ReportReport
Posted on by 4

Hi..

Can I access the dashboard's components like subgrid and PCF through code?

If so, how? because Xrm.Page API doesn't seem to work.

 

Thanks in advance.

I have the same question (0)
  • Ben Thompson Profile Picture
    1,400 on at

    Xrm.Page is deprecated and worked on forms rather than dashboards.

     

    You can use a DataSet PCF component as a drop in replacement for any List you place on a dashboard. Just double click on the appropriate list, click Controls and add the dataset PCF control you want to use in place of the standard readonly grid.

     

     
     

    Choose a different controlChoose a different control

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Nusrath ,

    Do you want to access components/controls within a Dashboard using Client API?

     

    If you want to access components/controls within a Dashboard using Client API, I afraid that there is no way to achieve your needs. Accessing Dashboard's child components/controls through Client API is not supported in PowerApps currently.

    Supported Client API Reference

     

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    Best regards,

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard