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 / Patch all items of gal...
Power Apps
Unanswered

Patch all items of gallery to a different source

(0) ShareShare
ReportReport
Posted on by 181

Hi,

 

I have a gallery called GalleryQuestions with source of SurveyQuestions that has a number of items. The gallery has a radio control in each record for the user to choose an answer. A little like a likert scale.
I'd like to patch a related table called QuestionResponses for each record in the gallery GalleryQuestions. 

 

I thought I could do something like this:

ForAll(GalleryQuestions.AllItems, Patch(QuestionResponses, Defaults(QuestionResponses),{Answer: ....}))

 

However, the field Answer from table QuestionResponses is not recognised as only fields in SurveyQuestions are available. 

 

Any ideas?

 

 

asaf

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @asafweis 

    Your code should work fine. I just tested something similar and your structure worked for me. Not sure what's going on?

     

    Some things you could check:

    - The column 'Answer' hasn't had it's name changed or is a complex column type, etc.

    - Is there any other code before/after this code that maybe affecting it? 

    - Have you included all required fields in your record to be Patched?

     

  • asafweis Profile Picture
    181 on at

    Thanks for giving this a go.

     

    Did you have a different datasource for the gallery items than the patching destination?

  • EddieE Profile Picture
    4,641 Moderator on at

    @asafweis 

    Yes.

    Gallery data source = List1, Patch data source = List 2.

    I even added a Radio control to the gallery and referenced that in my Patch

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard