nen
nen

Reputation: 767

delay until function in azure logic apps throwing error

I am trying to add a minute delay to the "delay until" action by getting the utcnow timestamp, adding a minute and converting into the time format that the "delay until" expects (https://learn.microsoft.com/en-us/azure/connectors/connectors-native-delay#add-the-delay-until-action)

None of the following works and throw the error below, what am i missing here, and is there a way where we can test these function independently without logic apps ?

 
1) @addMinutes(utcNow('o'),1,'YYYY-MM-DDThh:mm:ssZ')
2) @addMinutes(utcNow('YYYY-MM-DDThh:mm:ssZ'),1,'YYYY-MM-DDThh:mm:ssZ')
3) @addMinutes(utcNow(),1,'YYYY-MM-DDThh:mm:ssZ')

Unable to process template language expressions in action 'Delay_until' inputs at line '1' and column '2265': 'The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.'.

enter image description here

Upvotes: 0

Views: 312

Answers (1)

Frank Borzage
Frank Borzage

Reputation: 6816

Please try to use this expression:

addMinutes(utcNow(),1)

I did a test, it seems to be no problem:

enter image description here

Upvotes: 1

Related Questions