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 / Update SQL Table with ...
Power Apps
Answered

Update SQL Table with Patch for Multiple Records from PowerBI Integration

(0) ShareShare
ReportReport
Posted on by 17

Good day, for the life of me I can't seem to figure this out.  I have a Power BI report with a table that is connected to a power app so users can update the records they select in the report on the SQL table.  I can get this to work for a single record perfectly fine, but when trying to update multiple with a ForAll using 

 

ForAll([@PowerBIIntegration].Data, Patch(CSTargetList,LookUp(CSTargetList,CSTListId = Value(Label2.Text)), {ApprovalStatus:Dropdown1.SelectedText.Value, TargetListName:TargetListName, Serial:Serial})) 

 

Only the first record of the Gallery is updated not all of the items. if I change the Value(Label2.Text) to Gallery.AllItems.Label2 I get a comparison error of Text to Table. So currently stuck. 

 

Any help would be appreciated. 

 

Thank you. 

 

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @StephenR ,

     

    Maybe you could try the following formula:

    ForAll([@PowerBIIntegration].Data, Patch(CSTargetList,LookUp(CSTargetList,CSTListId = [@PowerBIIntegration].Data[@CSTListId]), {ApprovalStatus:Dropdown1.SelectedText.Value, TargetListName:TargetListName, Serial:Serial})) 

     

     

    Best Regards,
    Charlie Choi

  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @StephenR ,

     

    Is your problem solved?

     

    Best Regards,
    Charlie Choi

  • StephenR Profile Picture
    17 on at

    Thank you so much for this, sorry I can't believe I never came back and properly thanked you! 

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