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 / PowerFX commands on su...
Power Apps
Unanswered

PowerFX commands on subgrid patching with data from main form in Model Driven App

(0) ShareShare
ReportReport
Posted on by

Hi there,

 

Any chance that there is support for using data from te main form and patch that to selected items in the subgrid? 

 

The scenario is that I have a table (subscriptions) with a subgrid embedded with all the active contacts, therefore I want to create a subscriber record. I use the method which Scott Durow posted for updating multiple items in the subgrid;

 

ForAll(Self.Selected.AllItems As Thisrecord, Patch('Subscribers',Defaults('Subscribers'),{Contact: Thisrecord,',Subscription:LookUp(Subscriptions,Subscription=GUID(Subscription))}));

 

The script above work perfect in a way that it create the subscription records, however it always links to the first subscription in the table. Basically what I want to achieve is that the Subscription marked in red, is being filled with the GUID from the main form. Any chance this is possible with PowerFX commands? 

I have the same question (0)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard