cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Nusrath
Level: Power Up

Getting dashboard control through code

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
ben-thompson
Level 8

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.

 

 
 

Screenshot_40.pngChoose a different control

Community Support Team
Community Support Team

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Users online (5,963)