This Flow will delete Flow Interviews when the Interview Status was Error. Start with a Screen element and introduce the User to what the Flow will be used for, in this case to Delete Failed Five9 Interview Tasks.
Next, use a Get Records element to get all the Flow Interviews where the Interview Status is Error and the Interview Label contains the value of the name of the Tasks which should be Deleted.
Be sure that you Store All Records in a Collection
Next we'll use a Decision node to see if any failed records were found.
In the Decision we will compare the Collection from the Get Flow Interviews element and compare to a Global Constant of is Null False. If the Collection is empty (is Null) then nothing happens on the Default outcome path.
On the positive outcome path (where the Collection is not Null) we will create a Screen element to allow the User to select which Flow Interviews they want to Delete.
Add a Data Table to the screen Flow element, and use the Flow Interviews from the Get Records element as the Source Collection data.
Next you will use a Loop element to Loop through only the user Selected Rows.
Next use an Assignment element to add each of the selected Flow Interview IDs to the Collection Variable.
Next add another Assignment element to add the Record ID to the Collection.
Then, After Last you'll use a Decision to see if the User Selected Collection is Null.
Use an Assignment to count the Selected Rows.
Then use a Delete Records element to delete the items in the Collection.
Finally, create a Screen element to display Text with a Success message: Success! Records deleted.
When finished the Flow should look something like this:
Comments
0 comments
Please sign in to leave a comment.