Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Help trying to copy rows from one sheet to another

(0) ShareShare
ReportReport
Posted on by 51

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

 

  • Verified answer
    mowgli512 Profile Picture
    mowgli512 51 on at
    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'))

  • Verified answer
    v-yamao-msft Profile Picture
    v-yamao-msft on at
    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics