Hi,
I am building a flow that sends a reminder email two weeks and one week in advance of a date entered in my share point list. I want it to send the email only if a choice column in the list is "No". I am receiving the following error with the addDays expressions to calculate the two/one week dates from the date entered in my share point list.
"Unable to process template language expressions in action 'Compose_-_two weeks reminder' inputs at line '0' and column '0': 'The template language function 'add Days' expects its first parameter to be a string that contains the time. The provided value is of type 'Null'"
These are the expressions I am using for each compose action:
addDays(triggerBody()?['YourDateColumn'], -14)
addDays(triggerBody()?['YourDateColumn'], -7)
Any help/support to diagnose is truly appreciated!
Thanks for your reply. I do have a value in the date column in the share point list. The format is as shown below. The error message also says 'The template language function 'add Days' expects its first parameter to be a string that contains the time.' Could it have something to do with the way the date and time is formatted in my share point list?
Hi @SOOMALJ ,
Based on the error message, the error occurred because the value of triggerBody()?['YourDateColumn'] is null. Please check the output of triggerBody.
Best Regards,
Bof
stampcoin
125
David_MA
104
Super User 2025 Season 1
Michael E. Gernaey
90
Super User 2025 Season 1