Hello! Newbie at power automate 🙂 I am building a simple flow using the For a Selected Row template on excel to create tasks on Asana. I want to take the Date field on the excel table and use it with addDays() to create a new duedate on Asana but it keeps giving me errors. I've tried searching onto here for solutions but none of them seems to work. Would anyone have any ideas on a workaround? Thank you in advance!
Hi @JMDel ,
The first thing to do is to make sure that your 'Release Date' column meets the date format that exists in Excel.
Please do not create a format yourself, otherwise the date column cannot be calculated in flow.
Best Regards,
Sunshine Gu
Hi @v-yetonggu-msft ,
It worked, thank you!
Just an additional question, when my excel has values how can I get it to calculate using these dates on excel instead of having it as null?
Thank you!
Hi @JMDel ,
Okay, I know what you mean.
Please try this expression again:
if(empty(triggerBody()?['entity']?['Release Date']),null,addDays(triggerBody()?['entity']?['Release Date'],6,'yyyy-MM-dd'))
Best Regards,
Sunshine Gu
Hi @v-yetonggu-msft ,
This was my very first input on the formula
The field on excel is named 'Release Date'
Thank you!
Hi @JMDel ,
Could you please provide a screenshot of your flow control and the field names you use?
Best Regards,
Sunshine Gu
Hi @JMDel ,
Flow reports an error that the value you provided is empty, which means there are empty rows in your field, so I used an if statement.
If the field is empty, convert it to null. If it is not empty, add the number of days you want and format it into yyyy-MM-dd.
Please try this expression:
if(empty(filed),null,adddays(filed,number,'yyyy-MM-dd')
Best Regards,
Sunshine Gu
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1