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

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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,790)