Announcements
Hi,
I found this to remove a record from dataverse:
Remove('dbEmpD';ThisItem)
But the code is not correct!
And we use ; instead of , in Holland.
Gr, P
Hi @PeKi72,
The code seems correct:
Remove(Datasource; Record)
Please note that:
In case the schema does not match fully, you can use a LookUp function to fetch the correct record:
Remove( 'dbEmpD'; LookUp(DbEmpD; UniqueColumn = ThisItem.UniqueColumn) ) //Should you have added some columns within the app (collection / addcolumns) you could use DropColumns to remove those: Remove( 'dbEmpD'; DropColumns(ThisItem; "Column1InApp") )
If this solves your question, would you be so kind as to accept it as a solution.Thanks!
I found this:
@PeKi72
The UpdateContext code snippet updates 3 separate local variables - syntax looks ok but this will not delete a record. What would you like to change to / achieve with this code?
I use this code to delete records and it works but what i do not need is the confirmation message.
Do I understand it correctly that this code will open a pop-up where you can confirm the deletion? After confirmation the record is deleted?
If your button is outside the gallery (which could explain the previous ThisItem issue) you can use the following remove code:
Remove( 'dbEmpD'; BrowseGallery1.Selected )
Without the variables this should avoid your pop-up (make sure to remove unwanted controls). Should the code above not meet the requirements, would it be possible to provide some screenshots / full code snippets so I can get a better understanding of your app?
It works perfect. Thanks. Gr. P
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 405 Super User 2026 Season 2
Mohsin Ali 368
WarrenBelz 244 Most Valuable Professional