Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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.

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: Getting dashboard control through code

    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,

  • Ben Thompson Profile Picture
    1,400 on at
    Re: Getting dashboard control through code

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard