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 / Recommended way of acc...
Power Apps
Unanswered

Recommended way of accessing standard components, for instance, subgrids from PCF component.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I am currently working on adding records for the subgrid. everything went well but for some time I was stuck on a problem that I can't refresh the standard component (Subgrid in this case) as there is no way for me to access those standard components from the PCF component.

After some research on PCF documentation and additional google searches, I found a solution to this but I don't think it is a recommended approach.

 

 

 

// @TS-ignore
Xrm._page._ui.getControls().get(grid_component_name).refresh();

 

 

 

As you can see, I need to add @TS-ignore just to fix TS2304: Cannot find name 'Xrm' error, which I think is not a recommended approach.

Is there any recommended solution for this?

 

Categories:

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard