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

UTCNow Comparison

I want to run a fow on a schedule so I'm using @equals(utcNow('dd'), 13)) to force the flow to run today (March 13).  However, this equation evalutes to false so the flow doesnt run.  But...the output of @utcNow('dd') is 13....how does that happen?

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: UTCNow Comparison

Hi @ tdupton,

 

You are right, the result utcNow('dd') returned is a string type, and the 13 is a number type.

You could click the “Edit in advanced mode” in the Condition, and add the expression in the Condition as below:

@equals(utcNow('dd'), '19')

 

I have created a flow as below:

1.png

The flow would run successfully as below:

2.png

 

 

 

Regards,
Alice Zhang

View solution in original post

3 REPLIES 3
tdupton
Level: Powered On

Re: UTCNow Comparison

Any idea?  The value of @utcNow('dd') equates to the correct day but the condition to see if it's equal to a number fails...even though they actually match.  Is it because one value is a different type (string vs number)?

Community Support Team
Community Support Team

Re: UTCNow Comparison

Hi @ tdupton,

 

You are right, the result utcNow('dd') returned is a string type, and the 13 is a number type.

You could click the “Edit in advanced mode” in the Condition, and add the expression in the Condition as below:

@equals(utcNow('dd'), '19')

 

I have created a flow as below:

1.png

The flow would run successfully as below:

2.png

 

 

 

Regards,
Alice Zhang

View solution in original post

tdupton
Level: Powered On

Re: UTCNow Comparison

Perfect...I knew it had to be something simple.  Thank you!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,255)