I am working on a Web App where users could remove selected features from their SceneLayer and then save the changes in a new WebScene.
Right now, I have been able to add a filter but it does not save the changes properly. I think I should maybe try to retrieve the objectID of the selected features and work with them but I don't know if it is possible to do something.
Do you have any idea of how I could do it?
Thank you for your help.
Edit: I removed the old code, I've been able to solve my problem, the answer is below