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 : hS+MJ3Xxp17/lTr2MUPZQo
Power Apps - Building Power Apps
Answered

Copy a row of data in SharePoint list automatically when a cell in the row equals a specified value

Like (0) ShareShare
ReportReport
Posted on 7 Jul 2022 13:28:50 by 1

Hi All,

 

I am currently working on a tracker that monitors a status of a given task (in my case, its a submission of a report). The reports that I aim to track are of different cadence. I would like to automate the creation of a placeholder for the "next" report, once the "current" has been recorded as "submitted". 

 

For example, let's take the table below:

TheJM15_2-1657197139420.png

If the user fills in "ReportSubmissionDate", the "ReportStatus" changes to "Completed":

TheJM15_3-1657197197064.png

What I would like to achieve is that once the status turns into "Completed", a new record shows up with the next period (depending of what cadence we have, it will be either next month or next quarter or next year):

 

TheJM15_0-1657200436484.png

 

This is only a simplified version of the table, there are many other columns that store data specific for each submission (like "comments", "feedbacks" etc.) - I do not want those to be copied into the new record for the new reporting period, just a basic set of data, like "ReportName", "Cadence" and "Period"

 

In addition to that, I would like this solution to work both when the user enters the data via user form (created in Power Apps - already in use) and "Edit in grid mode".

 

Has anyone worked on a similar problem? I would appreciate any feedback - tips, suggestions are more than welcome. 

 

Thanks!

 

 

Categories:
  • vhn92 Profile Picture
    3 on 19 Jul 2022 at 12:12:51
    Re: Copy a row of data in SharePoint list automatically when a cell in the row equals a specified value

    Hi Charlie,

     

    Thank you for your comprehensive guideline, I really appreciate it. I used most of your tips (had to modify the "new reporting period" formula and create one additional variable), but other that I followed your instructions and they were very useful.

     

    Thanks and Best Regards,

    Pawel

  • Verified answer
    v-yujincui-msft Profile Picture
    on 12 Jul 2022 at 09:24:16
    Re: Copy a row of data in SharePoint list automatically when a cell in the row equals a specified value

    Hi @TheJM15 ,

     

    If you want this solution to work well both when the user enters data via the Form and "edit in grid mode", maybe you could consider creating a Flow.

     

    I have made a simple test for your reference.

     

    1. Here is my SharePoint list.

    vyujincuimsft_0-1657610868216.png

    To prevent Flow from getting stuck in an infinite loop, I created an extra status column.

     

    UPDATE: ProcessStatus column is not required.

     

    2. Here is my Flow.

    @not(equals(triggerBody()?['ReportSubmissionDate'], null))
    @not(equals(triggerBody()?['ReportStatus/Value'], 'Completed'))
    @not(equals(triggerBody()?['ProcessStatus/Value'], 'Processed'))
    @not(equals(triggerBody()?['Created'], triggerBody()?['Modified']))
    concat(substring(triggerOutputs()?['body/ReportPeriod'],0,add(length(triggerOutputs()?['body/ReportPeriod']),-1)),add(int(substring(triggerOutputs()?['body/ReportPeriod'],add(length(triggerOutputs()?['body/ReportPeriod']),-1),1)),1))

    vyujincuimsft_0-1657617328549.png

    vyujincuimsft_1-1657617601513.png

     

    vyujincuimsft_2-1657617711604.png

    Result Screenshot:

    vyujincuimsft_3-1657617774316.png

    In addition, here are some links for your reference.

    Trigger Conditions in Power Automate - EnjoySharePoint

    A simple way to create a trigger condition in Power Automate (tomriha.com)

     

     

    Best Regards,
    Charlie Choi

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete