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 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard