cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
biuser99
Helper I
Helper I

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 @biuser99 ,

 

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 @biuser99 ,

 

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.

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 @biuser99 ,

 

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,356)