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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to move whole r...
Power Automate
Answered

Trying to move whole row to a duplicate Archive list based on case status in a column with drop down options

(0) ShareShare
ReportReport
Posted on by 84

Morning all

Is anyone able to point me in the right direction to achieve the above?

 

The only help topics I can find are based on more complicated flows which relate to archiving items based on dates/times. I simply need to be able to copy a whole row on to a archive list once it has been dealt with, so someone has manually chosen "completed" from a column in the original list. I need that original entry to be removed from the original list and copy to the achieve one. 

 

🤞

Categories:
I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @_GBH_ , Are we facing any issue in achieving the said requirement? The requirement sounds okay. 

    I will recommend the following steps to achieve the requirement.
    1. Configure the Flow to trigger on When Item is created or modified.
    2. Add Trigger condition to only run if item is completed.
    3. Add Item in the Target SharePoint list.
    4. Delete item from the original list.

  • _GBH_ Profile Picture
    84 on at

    @Amit thank you for your reply. Yes, I have not been able to work out the steps to create it.

     

    I have tried to follow your very clear steps and realise my query is a little more complicated... in the choose a value box, I need it to pick up on 4 of the options (those with "successful" in the choice) to move it to a particular archive list. Are you able to advise on that please?

    _GBH__2-1670322555165.png

     

    _GBH__1-1670322428853.png

     

     

     

     

  • _GBH_ Profile Picture
    84 on at

    One of my screenshots did not add.... these are the drop-down options I need it to action on.

     

    _GBH__3-1670322632689.png

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Sure, @_GBH_ . I will require few details like internal name of field. Can you please hover over the field in condition and let me know what you see?

    Amit_Sharma_0-1670323022828.png


    Also, would like to know if any of Successful option selection is enough or all four options required to be selected.



  • _GBH_ Profile Picture
    84 on at

    I chose the option which included value _GBH__0-1670323766181.png

     

    I would need the trigger to happen when any of the 4 options with successful in the name were chosen. I then intend to make a new flow to capture cases which have 'Removal' in them, to go to a different archive list for removed cases. So, there will be one for successful ones and one for removed ones. 

     

    Thank you 🙂 @Amit_Sharma 

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hello @_GBH_ , Please share better resolution image. I'm not able to see the required value. 
    We will add trigger condition to the first step of flow to run on Success options and will eliminate the requirement for Condition action altogether.

  • _GBH_ Profile Picture
    84 on at

    So sorry, I hadn't realised how bad it was!  

    condition.jpg

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @_GBH_ , Please go to settings of first step in flow and use the below expressions in trigger conditions.

     

     

    @or(equals(triggerBody()?['body/Caseclosedstatus/Value'],'Successful via HF'),
    equals(triggerBody()?['body/Caseclosedstatus/Value'],'Successful via HM'),
    equals(triggerBody()?['body/Caseclosedstatus/Value'],'Successful via FSS'),
    equals(triggerBody()?['body/Caseclosedstatus/Value'],'Successful via RGS'))

     

     


    Amit_Sharma_0-1670328166512.png

    Amit_Sharma_1-1670328212411.png
    Above condition will make flow only trigger when Case Closed Status values is one the Successful values otherwise flow won't trigger. We can get rid of Condition to check if it is Success case once this is implemented. Please give it a try and let us know if it works as expected.

     

  • _GBH_ Profile Picture
    84 on at

    I made that update and have saved it. I cannot test the flow as it says I need at least one trigger and action in order to do so 🙂

     

    _GBH__0-1670329461743.png

     

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Sorry to jump in here but was working on a similar issue for someone else so thought I'd offer the solution here. It would be a single flow that worked for both Successful and Removal options.

     

    In this example I have the following lists (Cases, Cases Successful, Cases Removal).

    grantjenkins_0-1670330877819.png

    grantjenkins_1-1670330887145.png

    grantjenkins_2-1670330902248.png

     

    Settings for Case closed status column in SharePoint.

    grantjenkins_3-1670330945069.png

     

    The full flow is below. I'll go into each of the options.

    grantjenkins_4-1670331010952.png

     

    When an item is created or modified is for the Cases list and has the following Trigger Condition. So, it will trigger if the option chosen starts with Successful or Removal covering all the options we care about.

    @Anonymous(startsWith(triggerOutputs()?['body/Caseclosedstatus/Value'], 'Successful'), startsWith(triggerOutputs()?['body/Caseclosedstatus/Value'], 'Removal'))

    grantjenkins_5-1670331110146.png

     

    Switch will look at the first word in the Option selected as the Case. It uses the following expression that will split the words by space, then get the first word, which will be either Successful or Removal.

    first(split(triggerOutputs()?['body/Caseclosedstatus/Value'], ' '))

    grantjenkins_6-1670331198826.png

     

    If the Case is equal to Successful, then it will Create a new item in the Cases Successful List using the values from the Trigger.

    grantjenkins_7-1670331288457.png

     

    If the Case is equal to Removal then it will Create a new item in the Cases Removal List using the values from the Trigger.

    grantjenkins_8-1670331304009.png

     

    And regardless of what option (Successful or Removal) it will then delete the item from the Cases List.

    grantjenkins_9-1670331351582.png

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard