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

Delay Until : Convert UST to EST

Hi,

 

I am using Delay Until control to convert for page approval scheduling using date field.

I tried using convertfromUTC function convertFromUtc('ReleaseDate','Eastern Standard Time','YYYY-MM-DDTHH:MM: SSZ'), but its giving me error that the input string is not in the correct format.

'ReleaseDate' field is marked as Date and Time, and has value for date and time.

 

Will appreciate any help regarding it.

 

Thanks

3 REPLIES 3
Community Support Team
Community Support Team

Re: Delay Until : Convert UST to EST

Hi @ashish118312,

 

Thanks for providing the detailed info.

The default format for the Delay Until is (yyyy-MM-ddTHH:MMZ), please try to change the format of the timestamp in code like this:

convertFromUtc('ReleaseDate','Eastern Standard Time', yyyy-MM-ddTHH:MMZ ').

I have made a test with the following code which is working fine:

convertFromUtc(triggerBody()?['ReleasedDate'],'Eastern Standard Time','yyyy-MM-ddTHH:mmZ'

 

A screenshot of the flow for your reference:

1.PNG2.PNG

Please feel free post back if you need more help.

 

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.
ashish118312
Level: Powered On

Re: Delay Until : Convert UST to EST

Thanks for the response.

I implemented your suggestions, but stil getting the below error.

"InvalidTemplate. Unable to process template language expressions in action 'Delay_until' inputs at line '1' and column '2013': 'The template language function 'convertFromUtc' expects its first parameter to be a string that contains the time. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#ConvertFromUtc for usage details.'."

 

Formula configured with Delay Until control was:

convertFromUtc(triggerBody()?['Article_x0020_Release_x0020_Date'],'Eastern Standard Time','yyyy-MM-ddTHH:mmZ')

 

Kindly let me know if I am doing anything wrong.

Thanks for your help.

Community Support Team
Community Support Team

Re: Delay Until : Convert UST to EST

Hi @ashish118312,

 

Thanks for testing and feedback.

Please make sure you did enter a value in the column “Article Release Date”.

The error message says that the provided value is of type Null.

Please try again with it with a value in this field.

 

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.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

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

Top Solution Authors
Top Kudoed Authors
Users online (4,804)