Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Automate Monthly Copy and append of SharePoint list

(0) ShareShare
ReportReport
Posted on by 19

Hello,

I would like to automate the recycling of a list in sharepoint each month. We have a YTD list that is modified by a power app for stakeholders. What we need to do is Copy the previous month's (as filtered by "Period" column data. then append to the same list with  the current month listed in the "Period" variable.

 

Period is text of Month Name (Januray, February, etc.)

 

New to Power Automate so thanks for any tips.

 

Kyle

  • Verified answer
    KS772 Profile Picture
    19 on at
    Re: Automate Monthly Copy and append of SharePoint list

    I figured it out. The way we did it was a current month number and a prior month number. We will add the year to associate with YoY change. 

     

    We started with Current Month Number as expressed below:

    int(utcNow('MM'))

     

    The Current Month first day function below was needed to build the subsequent prior month:

    startOfMonth(utcNow())

     

    The Compose function we built created the integer for prior month through this expression:

    int(formatDateTime(subtractFromTime(outputs('CurrentMonthFirstDay'),1,'Month'),'MM'))
     
    We created the filter based on our Period (Month Number) in the List - where Period = Prior Month variable.
     
    Thanks!
  • KS772 Profile Picture
    19 on at
    Re: Automate Monthly Copy and append of SharePoint list

    Thanks Alex.

    We are almost there. We created a month number variable in the data and I just need to filter based on that being 1 less than the month from utcnow(). 

     

    Really just trying to create something along the lines of int(utcnow('MM')) minus 1 but having issues finding the best formula to do it.

  • alrezac Profile Picture
    on at
    Re: Automate Monthly Copy and append of SharePoint list

    Hi Kyle,

     

    Looking through your requirements here it does seem possible, but this will have a lot of variable dynamic values this will need to be generated. It will require the lists to have all of the same naming conventions but it is possible.

    A general idea: Trigger is a recurrence every month. Set a variable to UTC now. Grab the month from that variable and go to that select the list based off of the month and then you just need you grab the list items and copy them over to the next month.

     

    If you need more 1 on 1 help with creating this you can always work with a partner who specializes in building flows.

     

    Regards,

     

    Alex

     

    -------

     

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,620 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow