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 / Duplicate SharePoint L...
Power Automate
Unanswered

Duplicate SharePoint List Items and Increment Year by 1

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

 

I have a SharePoint list with a year column - what I am trying to do is:

Duplicate all items in the list and for all of the duplicated items, increment the year column by 1. So if they currently say 2022, then the duplicated list should show all the same values except the "Year" column will show 2023. 


I am struggling to get this logic working and I am not sure which step to do first after Get SharePoint Items. Any guidance would be immensely appreciated. Thanks!

Categories:
I have the same question (0)
  • Ventit Profile Picture
    422 on at

    Simply then do a create item based on the same list and populate the fields with the get items.  This will be turned into an apply to each and replicate through every record.  If there are a lot of records need to ensure you have modified the settings in the get items to turn on pagintation.  Set to max of 5000.  You cannot do more than this.  If more there are work arounds

     

    In the year column type 2023 - I assume it is a text field or number field.  If you are adding to date use an expression like

    formatDateTime(adddays(datefield),365),'yyyy')

  • cmndflom Profile Picture
    13 on at

    Thank you for the reply! Say I wanted to make the Year column dynamic in my flow so that I won't have to go in every year and update it to the next year in the Create Item section - how would I go about doing that?

  • Ventit Profile Picture
    422 on at

    Simply put the expression formatdatetime(addDays(utcNow(),365),'yyyy')  

     

    This will add 365 days to todays date

  • cmnflom Profile Picture
    18 on at

    I'm not sure I'm following how to set this up - in the 'yyyy' do I put the current year? 
    I currently have the year hard coded as "2023" so that when this flow is triggered, it will create 2023 items. How do I modify that so that it will increment it to "2024" the next time I run the trigger?

     

    cmnflom_0-1649441256840.png

     

  • Ventit Profile Picture
    422 on at

    The formula I gave adds 365 days to the current year it is run.  So if it was today it would be 2023

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard