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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Converting Time in Planner Using PowerAutomate

(0) ShareShare
ReportReport
Posted on by 64

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!

I have the same question (0)
  • Verified answer
    MarcelLehmann Profile Picture
    378 on at
    Re: Converting Time in Planner Using PowerAutomate

    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
    64 on at
    Re: Converting Time in Planner Using PowerAutomate

    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
    Re: Converting Time in Planner Using PowerAutomate

    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
    64 on at
    Re: Converting Time in Planner Using PowerAutomate

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard