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 / Is there no way yet to...
Power Apps
Unanswered

Is there no way yet to show edited gallery in a word template?

(0) ShareShare
ReportReport
Posted on by 22

Hi everyone, 

 

I have a controlled gallery that populates data from an excel sheet (which I don't want to update) to a word template so I can't use patch, refresh etc. 

 

Currently I use a formula in 'onselect' of my submit button.

 

 

ClearCollect(
 FilteredData,
 ForAll(
 Filter(
 DrPreferenceList,
 'Dr. Name' = 'Preference Dr Name'.Selected.'Dr. Name',
 'Preference List' = 'Preference List App'.Selected.Value
 ),
 {
 System: System,
 Product: Product,
 Qty: Qty,
 Notes: Notes
 }
 )
);
ForAll(
 FilteredData,
 BookingFormTable.Run(
 'Surgeon name'.Selected.'Dr. Name',
 'Hospital name',
 'Booking date',
 'Preference List App'.Selected.Value,
 'Preference List App'.Selected.Value,
 'Rep name',
 'Procedure date',
 'Procedure name',
 'Patient name',
 JSON(FilteredData)
 )
)

 

 

And in my ParseJSON schema
 

 

{
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "System": {
 "type": "string"
 },
 "Product": {
 "type": "string"
 },
 "Qty": {
 "type": "integer"
 },
 "Notes": {
 "type": "string"
 }
 },
 "required": [
 "System",
 "Product",
 "Qty",
 "Notes"
 ]
 }
}

 

 

 

 

I tried setting the formula as below

ClearCollect(
 FilteredData,
 ForAll(
 Filter(
 DrPreferenceList,
 'Dr. Name' = 'Preference Dr Name'.Selected.'Dr. Name',
 'Preference List' = 'Preference List App'.Selected.Value
 ),
 {
 System: System,
 Product: Product,
 Qty: Value(ThisItem.Qty.Text),
 Notes: ThisItem.Notes.Text
 }
 )
);

where it show the changes but it overwrites the first row of the 'notes' and 'qty' to other rows.

 

My initial problem was that the table in my word template only showed the first row of the gallery.

Since now I'm collecting the gallery data I can see my data perfectly in my word doc but I can't see the edited value or that I can't achieve PowerApps to collect the edited data without an issue of serialisation, local data collection etc. 

 

Since I'm new, I feel like I'm making an easy process complicated 😞

 

Please help!

 

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard