Forum Discussion
Adding Days
- Jan 18, 2022
JosephNierenberg you said you wanted the date that the trigger fires. That is today which in Power Automate is the expression utcNow(). So you add that into the expression as I showed in my previous post, you don't/can't select it.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
- JosephNierenbergJan 18, 2022Iron Contributor
RobElliott That looks simple enough, but it doesn't seem to work.
1. The only dynamic choices available for the "Due Date" field are Modified and Created. This is fine for my purposes. "Created" is defined in the dynamic expressions options as "When this item was created."
2. If I add 'Created' first and then try to add days it doesn't work. Adding the addDays function and then clicking the 'Created' expression as the timestamp in the addDays function results in this:
addDays(triggerOutputs()?['body/Created'])
which makes no sense to me.
3. If I just add the expression addDays() then 'Created' is not an available option to insert as the timestamp. If I add it anyway, to produce
addDays (Created,1)
then the system returns an error that the expression is invalid.
- RobElliottJan 18, 2022Silver Contributor
JosephNierenberg you said you wanted the date that the trigger fires. That is today which in Power Automate is the expression utcNow(). So you add that into the expression as I showed in my previous post, you don't/can't select it.
Rob
Los Gallardos
Microsoft Power Automate Community Super User