cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mowgli512
Level: Powered On

Help trying to copy rows from one sheet to another

Hi,

 

I have a sheet with the columns #, Date, Channel, Category, Title.

 

I am trying to copy rows which have the 'Date' column greater than a deadline date into another new sheet. 

I have created a flow which runs successfully but doesnt update anything.

 

Perhaps the condition I am using may be incorrect. Can someone please help with this? 

 

Flow image below - 

 

Screenshot 2019-01-08 at 5.58.41 PM.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: Help trying to copy rows from one sheet to another

Hi @mowgli512,

 

You said that the flow runs successfully but doesn’t update anything, please make sure there are items that matched the condition.

I have made the following test.

Before creating the flow, I have created an Excel table with the columns you mentioned, and I formatted the Date column as type of Text.

1.PNG

Then configured the flow likes below. Input the following code in the Condition in Advanced mode:

@greater(formatDateTime(items('Apply_to_each')?['Date'],'yyyy-MM-dd'), triggerBody()['date'])

 

When the button is clicked, all the items that matched the condition will be saved from Table2 to Table1.

2.PNG3.PNG

Please try again with it on your side. 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
mowgli512
Level: Powered On

Re: Help trying to copy rows from one sheet to another

This worked with the below condition - 

@greaterOrEquals(formatDateTime(items('Apply_to_each')?['Date'], 'yyyy-MM-dd'), formatDateTime(triggerBody()['date'], 'yyyy-MM-dd'))

2 REPLIES 2
Community Support Team
Community Support Team

Re: Help trying to copy rows from one sheet to another

Hi @mowgli512,

 

You said that the flow runs successfully but doesn’t update anything, please make sure there are items that matched the condition.

I have made the following test.

Before creating the flow, I have created an Excel table with the columns you mentioned, and I formatted the Date column as type of Text.

1.PNG

Then configured the flow likes below. Input the following code in the Condition in Advanced mode:

@greater(formatDateTime(items('Apply_to_each')?['Date'],'yyyy-MM-dd'), triggerBody()['date'])

 

When the button is clicked, all the items that matched the condition will be saved from Table2 to Table1.

2.PNG3.PNG

Please try again with it on your side. 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
mowgli512
Level: Powered On

Re: Help trying to copy rows from one sheet to another

This worked with the below condition - 

@greaterOrEquals(formatDateTime(items('Apply_to_each')?['Date'], 'yyyy-MM-dd'), formatDateTime(triggerBody()['date'], 'yyyy-MM-dd'))

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 212 members 4,725 guests
Please welcome our newest community members: