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 / Deleting items saved i...
Power Apps
Answered

Deleting items saved in "shopping basket"

(0) ShareShare
ReportReport
Posted on by 142

Hi,

 

I have a sales APP where i save items from a sharepoint list into a local collection.

 

Once the purchase are complete i want to delete the items saved origionally located in the sharepoint list.

 

I have tried ForAll(Basket, remove(SPLIST, ID))

 

Any ideas how to fix this?

 

 

Thanks - Johan

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is your Basket a collection of items compiled from the SharePoint list?

     

    If so, you should be able to call

    Remove(SPLIST, Basket);

     

    without a ForAll loop.

  • Draax Profile Picture
    142 on at

    Thanks for your reply Manuela!

     

    I get the following error while trying the formula

    SS_remove.jpg

     

    Lager is the SP list, Kundvagn is the collection (shopping basket).

     

    Im not entirly sure of what you mean by items compiled from the sharepoint list?

     

    This is how i add an item from my sharepoint list to my local collection:

    Collect(Kundvagn, {Produkt_Collection: ThisItem.Title,ImageData: First(ThisItem.'{Attachments}').Value, Pris_Collection: ThisItem.Pris, ID_Temp: Gallery_Lager_To_Delete.Selected.ID,Thisitem_From_Lager_To_Delete: Gallery_Lager_To_Delete.Selected});

     

    Thanks again for your help!

    Johan

     

     

  • Verified answer
    Draax Profile Picture
    142 on at

    After a lot of frustration I found this solution:

     

     

    ForAll(Kundvagn,Remove(Lager,Filter(Lager,ID = ID_Temp)))

     

    Johan

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