cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmc101
Frequent Visitor

Excel to Planner - Issue with dates

 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?

 

Capture.JPG

 
2 ACCEPTED SOLUTIONS

Accepted Solutions
Jay-Encodian
Community Champion
Community Champion

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

View solution in original post

Hey @pmc101 

So, I mocked this up... and the following works:

Expression: addDays('1899-12-30',int(item()?['Due Date']),'yyyy-MM-dd')

1.png

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

View solution in original post

4 REPLIES 4
Jay-Encodian
Community Champion
Community Champion

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

View solution in original post

Hey @pmc101 

So, I mocked this up... and the following works:

Expression: addDays('1899-12-30',int(item()?['Due Date']),'yyyy-MM-dd')

1.png

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

View solution in original post

v-litu-msft
Community Support
Community Support

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.

Hi Jay,

 

This did the trick! Thanks for your assistance 🙂

 

Regards 

 

Paul

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,432)