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

Need help with Multiple Updates in a collection

What is the best way to update a collection with data that a person has entered form multiple input boxes. The below formula is not working

 

 

UpdateIf(CommentaryUpdates,Reviewer = LedgertAcctGallery.Selected.Reviewer && MajorName = LedgertAcctGallery.Selected.MajorName,

{RootCause: RootCause_Text.Text,
  ActionPlan: ActionPlanIP.Text,
    OutsideControl: YesNoRadio_2.Selected.Value,
      Outside_Explanation: TeamsControl_IP.Text,
        ResolutionPrediction:ResolveCombobox_2.SelectedItems.Value,
          ResolutionExplain: NotSure_Comment.Text,
            DateUpdated:Today())};

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
becca51180
Helper I
Helper I

I figured it out. I used a ForAll to make it work

 

 

ForAll(AccountInfo_2.AllItems,
    UpdateIf(
        CommentaryUpdates, Reviewer = ThisItem.Reviewer,
        {DateUpdated: Today(), 
          RootCause: Var_Root, 
          ActionPlan: Var_Action, 
          OutsideControl: Var_YesNoResoltion, 
          ResolutionExplain: Var_Resolved_Explain,
          ResolutionPrediction: Var_Resolution_Selection,
          Outside_Explanation: Var_ControlExplain}
    )
);

View solution in original post

2 REPLIES 2
becca51180
Helper I
Helper I

I figured it out. I used a ForAll to make it work

 

 

ForAll(AccountInfo_2.AllItems,
    UpdateIf(
        CommentaryUpdates, Reviewer = ThisItem.Reviewer,
        {DateUpdated: Today(), 
          RootCause: Var_Root, 
          ActionPlan: Var_Action, 
          OutsideControl: Var_YesNoResoltion, 
          ResolutionExplain: Var_Resolved_Explain,
          ResolutionPrediction: Var_Resolution_Selection,
          Outside_Explanation: Var_ControlExplain}
    )
);

View solution in original post

alrez
Community Support
Community Support

Hi,

 

Thanks for your follow up post. I am glad you were able to get this solved! Hopefully this will prove useful to future communities users. 

 

Regards,

 

Alex

 

-------

 

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,355)