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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Date from nodes in...
Power Automate
Unanswered

Get Date from nodes in Planner Task to set Due Date in new Planner task

(0) ShareShare
ReportReport
Posted on by 25

I have the following Planner Task:

MicrosoftTeams-image (1).png

I need the date in nodes under "start" to create a new Task with the due date "start date (in this case 01.04.2023) - 7 days". How can I impement this?

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @ChristopherHau,

     

    You can use the same approach as in the previous thread. Use an indexOf to find the Start: label. Use substring to retrieve the 10 characters of your 01.04.2023 string value. You do need to use some split functions to split (on the dot) the year month and day values and turn it into the correct datetime format (yyyy-MM-ddTHH:mm:ss.fffZ) with a concat for the due date field though.

     

    Below is an example

     

    concat(split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Start Time Found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[2], '-', split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Line Manager found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[1], '-', split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Line Manager found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[0], 'T00:00:00.000Z')

     

    duedatetime.png 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard