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 automate cop...
Power Automate
Unanswered

Trying to automate copying data with multiple row columns

(0) ShareShare
ReportReport
Posted on by 55

Hi,

 

So I'm new to Power Automate and I'm trying to figure out how to copy certain items from a sharepoint list to the same list, I've added a screenshot of what the data would look like.

 

What I wanna do here is copy all the data from the last month (for example the highest month in this case is 3) and then copy it into the same list and change the month of the newly copied values to 4 (so that month 3 and 4 are the same) > and repeat this process the next month so that it copies all data from month 4 and pastes it with month 5.

 

Let's just say month 1 is january month 2 is february and so forth, they're linked with a foreign key to another sharepoint list.

 

How can I do this with Power Automate?

 

And secondly I seem to have issues trying to copy data that has data type ''multi row'' in sharepoint, is there a good workaround for this? how to copy all this data without getting errors.

Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at

    If I understand you correctly, these actions will achieve what you want, which you can use with a scheduled flow that runs once per month:

    David_MA_0-1680180446204.png

    In the Get items action you can use the filter query Month eq [expression to get prior month number] on your Month field, which assumes it is of type number set to zero decimal places. The expression would be:

     

    int(addDays(startOfMonth(utcNow()),-1,'MM'))

     

    The condition just checks to make sure items were found. The expression on the left side of the condition is:

     

    length(outputs('Get_items')?['body/value'])

     

    In the Create item action:

    examplecreateitem.jpg

    Just populate the fields with the prior month's data and use this expression to set the current Month value:

     

    int(formatDateTime(utcNow(),'MM'))

     

    If you have a lot of items that need to be copied each month, you could have some issues with threshold limits.

     

    I don't know what you mean by "multi row" so I cannot speak to that. In lists, each item is a row,

     

    Result:

    David_MA_1-1680181266345.png

     

  • Shoekstra Profile Picture
    55 on at

    Thank you David!

     

    I will try it out after my vacation and let you know how it goes!

     

    Have a good weekend.

  • Shoekstra Profile Picture
    55 on at

    Hi David,

     

    Sorry for the late response, things got a bit busy after my vacation! I've tried it and it works like a charm, thank you very much for your help.

  • Shoekstra Profile Picture
    55 on at

    Hi David,

     

    Sorry for the late response, things got a bit busy after my vacation! I've tried it and it works like a charm, thank you very much for your help.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard