web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List to not get modifi...
Power Automate
Unanswered

List to not get modified when rejected

(0) ShareShare
ReportReport
Posted on by 6

Hi

I have the flow trigger "When an item is Created or Modified".

When an item is created and rejected it gets deleted from the SharePoint list and that works fine.

 

But when a modified item in the SharePoint List is Rejected, the item should go back to it previous stage/version and not get updated. However, It still gets updated to the modified item when rejected.

 

Approval flow.PNG

 

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at
    Re: List to not get modified when rejected

    Hi!

    Let me see I understood the challenge: when approval is rejected, Flow execution takes the 'Condition' false branch. THen if item was modified, your expectation is flow execution should take the 'Condition 2' false branch, but it is always taking the 'Condition 2' true branch?

    Is my understanding correct?

    Thanx!

  • lakeshore Profile Picture
    6 on at
    Re: List to not get modified when rejected

    No it is suppose to go to false on condition 2 false branch. How to make the item to NOT get updated as it was rejected? Now the item gets updated to the new modified item even if rejected.

  • Verified answer
    v-litu-msft Profile Picture
    on at
    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:Annotation 2020-05-27 104758.jpg

    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.

  • charlotteoats Profile Picture
    2 on at
    Re: List to not get modified when rejected

    Hi @lakeshore 

     

    I was wondering if you managed to fix this issue?

     

    I have the same problem at the moment, and am very new to Power Automate.

     

    If you still have the flow, I was wondering if you would be able to send me pictures of your working flow, with the details of what you entered at each step? If you could, that would be such a great help.

     

    No problem if not.

     

    Thank you.

     

    Charlotte

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard