Hi,
I'm having an issue with passing due date from Excel to Planner. I'm using "List Rows Present in a Table" then using Apply to "Add a Task". Each time i run the flow, i get the error that the Due Date can be read (it changes the date to the integer equivalent). There are various suggestion on this site pointing using the function
addDays('1900-01-01',int(items('_')?['Date']))
and others advising
addDays('1899-12-30',float(items('_')?['Date']))
I have tried both but when I try to save the flow I always an error "The template validation failed: 'The repetition action(s) '_' referenced by 'inputs' in action 'Create_a_task' are not defined in the template.'. Any suggestions on why this is happening?
Hi Jay,
This did the trick! Thanks for your assistance 🙂
Regards
Paul
Hi @pmc101,
Just like @Jay-Encodian said, the expression you create is not correct. When used inside a repeating action over an array, return the current item in the array during the action's current iteration and return the current item from each cycle in a for-each loop. Use this function inside the for-each loop. You can get the values from that item's properties. by the expression item() or items('<loopName>').
In your Flow, it should be item() or items('Apply_to_each_1') .
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @pmc101
So, I mocked this up... and the following works:
Expression: addDays('1899-12-30',int(item()?['Due Date']),'yyyy-MM-dd')
HTH
Jay
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up
Hey @pmc101
I don’t think you’re passing the correct value inside the int expression.
I'll mock something up and test.
HTH
Jay
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