Re: List to not get modified when rejected
Hi @lakeshore,
I understand what you want to do is restore the previous version of the modified item if the current modified version was rejected, right?
If the item is modified, it indeed updated in the list, if you want to recover to not the status of not modified, the only way could do is get versions of this item, then use the previous version to update the current item, you could refer to this post to learn how to get previous versions:
https://powerusers.microsoft.com/t5/General-Power-Automate/How-to-get-previous-versions-of-a-list-items-from-Sharepoint/m-p/49335
Or you could refer to the following screenshot:
This expression means get previous version of modified item, results is array of versions, "1" is the index of previous item:
body('Send_an_HTTP_request_to_SharePoint')?['d']['results'][1]
But there is a problem is, if you use previous version to update the item, it will trigger the Flow again, cause it is modified. So, if you could add a column in the list as a switch, if the item is modified by Flow, turn on the switch to prevent the Flow run again; if someone modified the Flow manually, should turn off the switch to make the Flow could run normally. And you should create a condition under the trigger to determine status of switch.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.