Hi everyone, I hope someone can help me,
I'm creating a Flow which takes responses to a Form and creates a task in Planner for the relevant team. I want to set it so that it will automatically work out the Due Date as 3 working days away. I know that the 'workday' function from Excel doesn't work so I worked out that all days need to be set to add 3 days except for Wednesday and Thursday which need to add 5 and 4 days respectively. I tried to create the following expression using nested ifs but I keep getting an invalid expression error message:
if(utcNow('dddd')="Wednesday",addDays(outputs('Get_response_details')?['body/submitDate'],5),if(utcNow('dddd')="Thursday",addDays(outputs('Get_response_details')?['body/submitDate'],4),addDays(outputs('Get_response_details')?['body/submitDate'],3)))
Any support I can get with this flow would be highly appreciated.
Cheers in advance 🙂