Dear all, I have crafted a new button "Remove All" on Quote form (D365 Sales - Model Driven App) using PowerFX Command.
It works quite well, but recently I was surprised to see that not all the records are deleted.
The command is:
If(Confirm ("Are you sure?",{ Title: "Remove All Quote Products ?", Subtitle: "This action will remove all products from the quote", ConfirmButton: "Yes", CancelButton: "No" }), Remove('Quote Products', Self.Selected.Item.'Quote Products',RemoveFlags.All);Refresh('Quote Products'))
I use the RemoveFlags.All ... which is as per documentation - isteadof deleting 1 reocrd, it deletes all records.
The problem is that success is not 100%. Sometimes I need to press the button twice to have all the Quote Products deleted. It looks to me as implementation bug.
Any other thought - suggestion ?