web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Scheduled cloud flow

(0) ShareShare
ReportReport
Posted on by 391

Hi all,

 

I have a scheduled cloud flow that runs everyday.

nicklim_0-1682991604689.png


It then connects to the SharePoint site to extract the Departure date column values

nicklim_2-1682991960946.png

 

Apply to each - Set the condition to check if the "departure date" column in SP list is equal to the current date and time. 

First condition- formatDateTime(utcNow(),'dd/MM/yyyy HH:mm')

Second condition -  equals(formatDateTime(utcNow(),'dd/MM/yyyy HH:mm'),triggerBody()?['Departure date'])

nicklim_4-1682992813730.png

 

SharePoint List Departure date column

nicklim_5-1682992868993.png

 

I did a test run by manually changing the "Departure date" column in SP to match the current time, and or some reason, it only triggers the "If no" statement even when the date and time matches the current one?

 

I am totally lost, can someone please advise what am I missing here?

 

Nick

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @nicklim 

     

    Please modify both the conditions:

    First Condition: Don't put any expression, just take the 'Departure time' column value from the SharePoint

    list.

    Second Condition: modify the expression to

    formatDateTime(utcNow(),'yyyy-MM-dd')

    Below is the screenshot for your reference:

    ManishSolanki_0-1682995384271.png

     

    Please remember to give a 👍 and accept my solution as it will help others in the future, if it resolves your problem.

     

    Thanks

  • nicklim Profile Picture
    391 on at

    @ManishSolanki 

     

    I tried your suggestion but the Expression result is still returning as false.

    nicklim_0-1682996377321.png

     

    Expression result:

    nicklim_1-1682996419186.png

     

    SharePoint list Depature date column:

    nicklim_2-1682996457175.png

     

  • nicklim Profile Picture
    391 on at

    @ManishSolanki 

    On a side note, I've also tried the below expression in the second condition column without any luck.

    formatDateTime(convertFromUtc(utcNow(),'AUS Eastern Standard Time'),'yyyy-MM-dd')

  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @nicklim 

     

    I just observed that 'Departure date' field has got time also. In that case, wrap the 'Departure date' field with formatDateTime formula in first condition:

    formatDateTime(item()?['Departuredate'],'yyyy-MM-dd')

    ManishSolanki_1-1682998294702.png

    Here, I have taken internal name of 'Departure date' field as 'Departuredate'. Pls modify the 'Departure date' field name in the expression with the name exit in your SharePoint site.

     

    I hope it will resolve the issue.

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • nicklim Profile Picture
    391 on at

    @ManishSolanki 

     

    Thank you so much, that worked.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard