cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lavint
Helper I
Helper I

Delete a sharepoint item in the middle of the approval flow

What happens when a sharePoint item is deleted in the middle of the approval flow waiting for approvers to respond?

8 REPLIES 8
Pstork1
Dual Super User
Dual Super User

Nothing really happens, but when the Approver finally approves or rejects the approval it will probably return an error message saying that the item can't be found.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
ScottShearer
Super User
Super User

@lavint 

I agree with @Pstork1.  I believe that you'll see an error when the Flow attempts to update the SharePoint list item.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-bacao-msft
Community Support
Community Support

Hi @lavint ,

 

 

Could you please share a screenshot of the Flow configuration?

Have you configured Delete item action in Flow?

If so, it may be that some part of the logic leads to such a situation.

Please provide more details so that we can do a more accurate analysis.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

Doing nothing is fine but the problem is, the flow Approval center does NOT give an error message when the item does not exist anymore OR if the item is not with that user anymore.. Is there a way I can force the Approval center to show an error when the approver's decision on the approval item will no longer affect the result? 

1) It doesn't show an error, but clicking on it doesn't do anything either.

2) You can use Delete a CDS record to remove the Approval from the Flow Approvals tab.

3) There is no way to force the Approval center to show an error.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi,

 

1) It doesn't do anything on the Sharepoint item itself, but if I click approved, it allows me to click and shows "The request is approved" on the flow approval center. This causes confusion for approvers.. Basically the person do not have an affect on the item anymore but he is able to click and thought he approved/rejected the item

 

2) How to use Delete a CDS record? It's done in the approval center?

1) Agreed it could be confusing.  But its just as confusing if they approve the item and then someone deletes.

2) There is an action in the Common Data Service connector that lets you Delete a Record.  When you create your approval it generates an ID in the dynamic content.  The Delete a Record takes three parameters. Environment, Entity (it would be Approvals) and the ID.  Note: Anything with CDS is a Premium feature.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Does this CDS function delete the approval request in the APPROVAL CENTER at flow.microsoft.com?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,946)