Hello,
i am new to flow and want to compare a date from a input of a Forms-Document with the current date.
To get the current date i used this function:
if-else condition: when the Forms-Date is equal to the current date OR the approvals are all 'approved', than...
English: Unable to process template language expressions for action "condition" in row "1" and column "37392": The template language function "formatDateTime" expects a parameter of type "string" as first parameter. The specified value is of type "Null".
Solved! Go to Solution.
Hi @flowArcade,
You are using the When a response is submitted trigger action, correct? I don't think that action has a createdon field in the body. I do see the eventTime which is a datetime field.
Can you try that field instead:
formatDateTime(triggerBody()?['eventTime'], 'yyyy-MM-dd')
You might also want to check the formatting on the Bis wann field in the left side of the condition. Maybe you need to apply formatting to that field to in order to match the same yyyy-MM-dd format.
Hi @flowArcade,
You are using the When a response is submitted trigger action, correct? I don't think that action has a createdon field in the body. I do see the eventTime which is a datetime field.
Can you try that field instead:
formatDateTime(triggerBody()?['eventTime'], 'yyyy-MM-dd')
You might also want to check the formatting on the Bis wann field in the left side of the condition. Maybe you need to apply formatting to that field to in order to match the same yyyy-MM-dd format.
Thank you so much! It works fine now 😊
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
12 |
User | Count |
---|---|
127 | |
54 | |
38 | |
26 | |
21 |