cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Community Support
Community Support

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
Highlighted
Helper II
Helper II

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)?

Highlighted
Community Support
Community Support

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

Highlighted

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (7,442)