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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove records in mult...
Power Apps
Unanswered

Remove records in multiple data source via powerApp

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have a flow where I would like to remove items in a SharePoint list and also in an SQL server. I'm hitting issues there.

 

See below the details:

 

  • One SharePoint list: one column is called "ParseurItemID" which has unique values.
  • An SQL table where the ParseurItemID is recorded also (might have duplicate, I can make sure there is no duplicate for the column ParseurItemID, but for the time being I would like to accommodate the ParseurItemID to have some duplication if possible)

 

 

Then the power app where I want to: on a click of a "Button"  I would like to remove from 

  • The sharepoint list "Purchase Invoices" 
  • The SQL table "Power_Automate_CSI_Purchase_Invoice_Auto_Processing"

all the record for the ParseurItemID. The parseurItem ID I want to remove is in the powerapp page under the an editform, field called PaseurItemID_datacard1, and it's the datacardvalue10. One the page we are processing a specific parseuritemID. not multiple one (just to make this clear).

 

 

 

 

To remove it from the SharePoint List I tried "OnSelect" of the button the following:

  • Remove('Purchase Invoices',LookUp('Purchase Invoices',ParseurItemID=DataCardValue10))
  • Remove('Purchase Invoices',LookUp('Purchase Invoices',ParseurItemID=DataCardValue10.Value))
  • Remove if as well and multiple other patch / remove from what I could find.

 

So far all my test failed. Would you have a tip to remove the record from the sharepoint list and from the SQL. 

 

I tried to remove it from SQL as well different function but it all failed. 

 

Thanks a lot to the community, as always !

 

Nick007

Categories:
  • Nick007 Profile Picture
    4 on at

    If this help I have done a diagram to visualized the request. 

     

    Nick007_1-1702305149064.png

     

     

  • Nick007 Profile Picture
    4 on at

    Hi, 

    Any expert advice before I give up, I have spend 5 hours on this over the week end and nothing worked.

    I'm sure I'm missing something basic in the "on select" statement... 

    Thanks to whoever can guide me in this on.

    Nicky.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard