Salesforce Fact #127 | Get deleted records in flow

Suppose we have a requirement to access deleted records in flow. No worries. We have an object called Recycle Bin Item in flow which stores the deleted records.

In this example, I am fetching the deleted contact records in flow.

Attached are the screenshots.




 

Comments

  1. I took this one step further and displayed the list of records in a table. My intention was then to allow the user to be able to undelete selected records. Unfortunately you cannot change the IsDeleted flag on the record or delete the record from the recycle bin with a flow. Flow does not provide an undelete action either. My next challenge is to write an invocable apex action that will be called from the flow to do this. I'm struggling with this part so have reached out to my Apex guru for help.

    ReplyDelete

Post a Comment

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow