Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

forall

Posted on by 4
 
  • OleB Profile Picture
    OleB 4 on at
    forall returns single result for a Patch but I need the multi selection
    .
  • Mark Nanneman Profile Picture
    Mark Nanneman 329 on at
    forall returns single result for a Patch but I need the multi selection
    I can't quite tell what you're trying to do, could you post your entire code? Including the "Patch(" portion?  

    One recommendation I have is to get rid of all of your duplicate filter actions.  If 'Urenlijst Medewerkers' is a SharePoint List then you're making 6 API calls to SharePoint for every item in your "ForAll".

    You could make one and store it "inline" with a With function, something like:
     
    ForAll(Opvolging.SelectedItems;
        With(
            {
                sp_P: First(Filter('Urenlijst Medewerkers'; 'SP persoon'.DisplayName = ThisRecord.'SP persoon'.DisplayName)).'SP persoon'
            },
            {
                Claims: sp_P.Claims;
                Picture: sp_P.Picture;
                Email: sp_P.Email;
                Department: sp_P.Department;
                DisplayName: sp_P.DisplayName;
                JobTitle: sp_P.JobTitle
            }
        )
    )


     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard