Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Updating a SharePoint list within a ForAll by patching a drop-down menu value

(0) ShareShare
ReportReport
Posted on by

Hello People,

 

I'm updating multiple records in a SharePoint list by using a ForAll. Within the checked items to be updated there are drop down lists, 'Box' and 'Slot No'. Although no error is shown the update is not performed. Please suggest alternative code for these two lines as I have become stuck.

 

ForAll(CheckedItems As D,

Patch(RCAData,First(SortByColumns(Filter(RCAData,BatchID = DataCardValue16_2.Text && WaferID = D.'Wafer ID'),
 "Created",
 SortOrder.Descending)),
 {
 TrackOutTime: Now(),
 TrackOutComments: DataCardValue29.Text,
 TrackOutOperator: OperatorDropDown.Selected.Operator,
 Box: D.Box, 
 ProductID: DataCardValue5_1.Selected.Value,
 SlotNo: D.'Slot No',
 ProcessCount: CountRows(Filter(RCAData, BatchID = DataCardValue16_2.Text && WaferID = D.'Wafer ID'))
 }
 )
);

 

Thank you for your help.

 

Rob

  • rob4681 Profile Picture
    on at
    Re: Updating a SharePoint list within a ForAll by patching a drop-down menu value

    Thank you for your response. I have BatchID as text. The code finds the correct line to populate. The problem is I cannot get the drop-down lists for Box and SlotNo to populate when patching. Thanks

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Updating a SharePoint list within a ForAll by patching a drop-down menu value

    i have wrapped the Datacardvalue16_2.Text(text) with Value because you are comparing it to BatchID(Number) and so on

  • rob4681 Profile Picture
    on at
    Re: Updating a SharePoint list within a ForAll by patching a drop-down menu value

    Sorry I cannot see the changes.

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Updating a SharePoint list within a ForAll by patching a drop-down menu value
    ForAll(CheckedItems As D,
    
    Patch(RCAData,First(SortByColumns(Filter(RCAData,BatchID = Value(DataCardValue16_2.Text) && WaferID = Value(D.'Wafer ID')),
     "Created",
     SortOrder.Descending)),
     {
     TrackOutTime: Now(),
     TrackOutComments: DataCardValue29.Text,
     TrackOutOperator: OperatorDropDown.Selected.Operator,
     Box: D.Box, 
     ProductID: DataCardValue5_1.Selected.Value,
     SlotNo: D.'Slot No',
     ProcessCount: CountRows(Filter(RCAData, BatchID = DataCardValue16_2.Text && WaferID = D.'Wafer ID'))
     }
     )
    );

    try this

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard