cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Micaelat
Regular Visitor

Patch Filtered Gallery to Sharepoint List

Hello 😊

 

I have created a gallery which has been filter based on a drop down box.

Micaelat_0-1593511322875.png

There are three items in the gallery

  1. Station = Label
  2. Area = Label
  3. Response = Radio Buttons

I am able to patch number 2 and 3. But I am struggling to get all the items on the gallery, only the first one ( BA00 for example ) shows on the sharepoint list.

 

Here is my Patch formula linked to a button. ( highlighted area controls the station) 

Micaelat_1-1593511841446.png

This is what it looks like in the sharepoint list 

Micaelat_2-1593511913133.png

All ( BM50) 

 

Any help will be appreciated.

 

Thank you,

Micaela

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @Micaelat ,

I am not entirely clear on your issue from what you have posted, but there are few things I would change - firstly Date is not a good name for either a field or control - it is a Reserved Word in Power Apps - I suggest you get other names for them both.

Other than that you have a non-delegable in Filter in the code - I am assuming there would be an exact match, so you do not need this. To Start with, try the below

ForAll(
   Galleryl_l.Alltems,
   Patch(
      'TPM check',
      Defaults('TPM check’),
      {
         'ST': Labe13.Text,
         'Title' :VS.SelectedText.Value,
         'Auditor':User().Email,
         'Date':Date.SelectedDate,         //rename these
         'SM' :SM.SelectedText.Value,
         'TL':TL.SelectedText.Value,
         Response: 
         Switch(
            Radiol.Selected.Value,
            "Red", "R",
            "Green", "G" ,
            "X"
         )
      }
   )
)

If this does not fix the issue, can you please explain exactly what it is you need done that it is not doing.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

v-yutliu-msft
Community Support
Community Support

Hi @Micaelat ,

Do you want to patch all the data in the gallery to your sharepoint list?

Do you mean that all the ST field will be updated with the first row's ST data?

If so, could you tell me:

1)where do you put this patch button? outside the gallery or inside the gallery?

2) data type of ST field?

3)the settings of label3

4)how many records are in your gallery and your sharepoint list? do you have delegation problem?

Changing delegation limit to 2000 may help:

delegation.jpg

 

Actually, your formula seems like having no problem, so I need more details to help you find where's your problem.

 

 

Best regards,

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,497)