web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / From Excel to Planner ...
Power Automate
Unanswered

From Excel to Planner Tasks - Due Date field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have created a flow to create tasks in a planner successfully except specifying the due date in each task. 

In my excel, each row (for each task) has a different due date. How do I tell the flow to import that specific due date for each task. Sorry, I have read some similar questions and tried, but couldn't figure out a solution. 

Categories:
  • Rahber Profile Picture
    1,935 on at
    If you are using Excel Online, when getting the data in flow the due date is in the form of integers.

    You can read about how to calculate days from this post: https://powerusers.microsoft.com/t5/Building-Flows/Excel-dates-turned-into-integers/m-p/594719/highlight/true#M78438
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rahber , thank you very much for the link. Yes, I use Excel online (business) connector. I read it through and am still a bit confused.

     

    I tried the following expression: addDays('1900-01-01',int(items('Due Date_')?['Date'])) into "expression" and saved the flow, but got an error message: "The template validation failed: "the repetition actions "Due Date" referenced by "inputs" in action "create a task" are not defined in the template. 

     

    Do I miss a step? How do I define?

     

    For your reference, this is how my current flow looks like:

    Manually trigger a flow -> List rows

    List rows present in a table

    Get a row

    List buckets

    Apply to each (condition to put a specific task to a specific bucket) - create a task

     

     

  • Rahber Profile Picture
    1,935 on at

    Hello @Anonymous

     

    Here is the correct formula to use

     

     

     

    addDays('1899-12-30',int(items('Apply_to_each')?['DueDate']),'yyyy-MM-dd')

     

     

     

     

     
    'Apply_to_each' is the action name for my parent action where the value is coming from. In ['DueDate'] DueDate is the column name in my excel
    task flow.PNG
     
    the Flow will fail if there is a empty value in the due date (because of the custom expression we are using) column so make sure you are checking if and only creating flow if Due date is filled.
     
     
     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rahber , I am still having trouble with that. Now, it gave me another error message: " the template validation failed: the inputs of template action 'create a task' at line 1 and column 4270 is invliad. Action 'apply to each" must be parent foreach scope of action 'create a task' to be referenced by 'repeatItems' or 'items functions'. 

     

    Please allow me to share the screenshots of my entire flow: 

    I have the steps to pull bucket ID so that each task can be created into the correct bucket. 

    Christie_1-1593552050037.png

     

    Christie_2-1593552087624.png

     

    Christie_3-1593552142550.png

     

     

  • Rahber Profile Picture
    1,935 on at

    1) You do not need Get a Row action inside Apply yo each since you already have all the rows form List all Rows.

     

    Why are you listening buckets and what is the condition you are checking?

     

    This is how the flow should look like

     

    Manually Triggers the Flow

    List Rows Present in Table in Table

    Get Buckets ID

    Apply to EACH BUCKET

          Apply to Each ROW

               Condition

                If YES

                        Create a Task

                If No

                       Do Something Else

     

        

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard