• akams networksetup
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello everyone,

I would like to create a list button "mass delete" action from a screen flow. The idea is to delete records selected in the list view. I build my flow with ids variable , but the delete element need a specific type of object. 

The idea is to put this "mass delete " button on multiple list view of differents objects (account, contact, case , custom objects) without create one flow by object type . I would like to know if it 's possible to create an invocable apex class  based on Sobject and database.delete , to delete ids selected ?

I'm totally newbie in Apex langage , 
If someone could help me write this invocable class I would appreciate it. Thanks a lot.
I have a lightning app which has the remote site settings dynamic.
So, is it a good practice to use metadataService.class (http://technome2.blogspot.com/2017/05/creating-remote-site-settings.html) in post-installation script to add remote site settings for the org?