web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating a SharePoint ...
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

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    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

  • rob4681 Profile Picture
    on at

    Sorry I cannot see the changes.

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    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

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard