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}
    )
);
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
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 (3,041)