延迟直到天蓝色逻辑应用程序中的函数抛出错误

时间:2021-04-20 13:18:25

标签: azure azure-logic-apps

我试图通过获取 utcnow 时间戳、添加一分钟并转换为“延迟直到”预期的时间格式 (https://docs.microsoft.com/en-us/azure/connectors/connectors-native-delay#add-the-delay-until-action) 来为“延迟直到”操作添加一分钟延迟

以下都不起作用并在下面抛出错误,我在这里遗漏了什么,有没有一种方法可以在没有逻辑应用程序的情况下独立测试这些功能?

 
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

1 个答案:

答案 0 :(得分:1)

请尝试使用这个表达:

addMinutes(utcNow(),1)

我做了一个测试,好像没有问题:

enter image description here