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 / Converting Time in Pla...
Power Automate
Answered

Converting Time in Planner Using PowerAutomate

(0) ShareShare
ReportReport
Posted on by 68

Hi All, @ChadVKealey,

 

I do have a Form that flows into a Planner and I am using PowerAutomate.

 

The question in the form is like this and both are optional.

 

Screenshot 2023-06-07 at 2.52.07 PM.png

 

When I have them as required and there is a user input, it works fine and I am using this:

 

Screenshot 2023-06-07 at 2.55.06 PM.png

 

But since is now optional, what can I do to address it?

 

I have them both here too in Create Task:

 

Screenshot 2023-06-07 at 2.55.50 PM.png

Thanks in advance!

Categories:
  • Verified answer
    MarcelLehmann Profile Picture
    378 on at

    The most straightforward way to manage this would be to surround each 'convert time' action with a condition that checks if 'starttime' is empty (you can express this as 'empty(starttime) equals true').

     

    Then, under the 'false' branch, you can place your action and refer to it as you are currently doing. This means that if this action is empty, then the date in the planner will also be empty.

  • lbensen22 Profile Picture
    68 on at

    Thank you, @MarcelLehmann.

     

    I used this expression: 

    empty(outputs('Get_response_details')?['body/r50cda625bcc44fceb57a2f460ba38e76'])

     

    Screenshot 2023-06-07 at 6.28.52 PM.png

    I am getting an error: 

     

    InvalidTemplate. Unable to process template language expressions for action 'Convert_time_zone_-_start_date' at line '0' and column '0': 'In function 'converttimezone', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'.

  • MarcelLehmann Profile Picture
    378 on at

    I can't clearly see it in the picture, but shouldn't the 'convert time' action be on the other side? So that it only processes when it's not empty.

  • lbensen22 Profile Picture
    68 on at

    It worked! I moved it to the other side. Thank you, @MarcelLehmann!

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
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard