Please can someone help. I have a workflow created in microsoft teams that as soon as an email lands in a specified inbox, a new planner task is created. I want to add an automatic due date to the task. I have tried multiple codes and I cant get it to work.
This code
concat(formatDateTime(parseDateTime(triggerOutputs()?['body/createdDateTime']), 'yyyy', 'en-US'), slice(triggerOutputs()?['body/createdDateTime'], indexOf(triggerOutputs()?['body/createdDateTime'], '-'), add(indexOf(triggerOutputs()?['body/createdDateTime'], '-'), 5)), '8')
seems to make all due dates as 18/10/2024
this does the same
concat(
formatDateTime(
addDays(parseDateTime(triggerOutputs()?['body/createdDateTime']), 7),
'yyyy',
'en-US'
),
slice(
triggerOutputs()?['body/createdDateTime'],
indexOf(triggerOutputs()?['body/createdDateTime'], '-'),
add(indexOf(triggerOutputs()?['body/createdDateTime'], '-'), 5)
),
'8'
)
the add dates function doesnt work either.
any tips would be great please.
thank you