cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Issue with Repeating tables

Hello,

 

I have a Gallery in which there are few drop down fields to select values and I have used Patch with Collect function to save and create rows. However, after selecting values in first row drop downs and hitting save button a new row with drop down is created, but the selected values in first row have disappeared and are reset to initial values. Can someone explain how to overcome this issue?

 

Thank You

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous ,

 

Is this dropdown value for a choice column in SharePoint? In this Patch formula, which part is for this choice column?

 

If the parameter for choice column only contains the choice value, then it won't be saved to SharePoint. To Patch a choice column, the formula should be something like:

{choice:
 {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
  Value:Dropdown1.Selected.Value}
 }

 

Regards,

Mona

 

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

View solution in original post

3 REPLIES 3
v-monli-msft
Community Support
Community Support

Hi @Anonymous ,

 

What is the your data source? 

Would you please share the formulas of the Items and Default property of the dropdown control? Also the Items property of gallery?

Did you have a refresh of the data source when patching the data source?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Mona,

 

Thanks for the reply. I'm able to resolve dropdown value reset issue, but the selected dropdown values in gallery are not getting saved in the Sharepoint list. The main list which has the form data is being updated but the gallery values are not being saved to detail list.

 

Form1 (OnSuccess) code : 

 

ForAll(ImpactedAudienceCollection, Patch(ImpactedAudienceGroups,Defaults(ImpactedAudienceGroups),{ImpactedAudience:ImpactedAudiencegroup,Region:Regionitem,Market:Marketitem,Description:Description,BCODate:DateValue(BCO,"mm/dd/yyyy"),ID:Form1.LastSubmit.ID}))

 

Please advise.

 

Thank You

Hi @Anonymous ,

 

Is this dropdown value for a choice column in SharePoint? In this Patch formula, which part is for this choice column?

 

If the parameter for choice column only contains the choice value, then it won't be saved to SharePoint. To Patch a choice column, the formula should be something like:

{choice:
 {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
  Value:Dropdown1.Selected.Value}
 }

 

Regards,

Mona

 

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,910)