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 : p/fA3Zlkw9+ULdQgEI9i/5
Power Automate - General Discussion
Answered

Delay until - action not working

Like (0) ShareShare
ReportReport
Posted on 29 Jan 2019 13:44:21 by 84

I have a survey set up informs and want to delay an email (within flow) based on the 'effective date' entered in the survey (using forms date format).  I'm using a link from dynamic content, however I keep getting an this error message:

 

BadRequest. The 'timestamp' value of the 'Wait' action 'until' inputs must be specified in UTC using the round-trip date/time pattern (for example, '2015-10-22T10:00:00Z'). For details please review the Standard Date and Time Format Strings of the .Net framework.

 

I get that it's a formatting issue but how do I change the format of a dynamic content link?  Thanks

  • ncotela23 Profile Picture
    101 on 09 May 2022 at 20:25:40
    Re: Delay until - action not working

    @LeeHarris when I enter this formula, it works partly. I say partly because it creates a task on the date I input, but it does not complete the update task details step within the flow. It looks as though it skips right over it. 

     

    ncotela23_0-1652127933153.png

     

  • cmoautomate Profile Picture
    2 on 09 Jun 2020 at 16:52:33
    Re: Delay until - action not working
    Is it possible to use this feature to delay for a weekly posting?
  • PMac Profile Picture
    84 on 30 Jan 2019 at 13:40:20
    Re: Delay until - action not working

    @LeeHarris Brilliant - so excited this worked.  thank you!!!!

  • Verified answer
    LeeHarris Profile Picture
    1,026 on 29 Jan 2019 at 16:04:53
    Re: Delay until - action not working

    Hi @PMac

     

    You also need to include the format that you want your date to be in as the second parameter of the FormatDateTime function.

     

    As an example:

    formatDateTime(body('get_response_details')?['r50efee1c8f4c4989bef86073c2d41dd6'],'yyyy-MM-ddThh:mm:ssZ' 

    will output the date as something like 2019-01-30T16:03:00Z. Your Dynamic Content is the first parameter in orange and the format is the second parameter in green.

     

    More information on ISO date formats can be found here https://en.wikipedia.org/wiki/ISO_8601

  • PMac Profile Picture
    84 on 29 Jan 2019 at 15:52:53
    Re: Delay until - action not working

    This is really helpful, unfortunately I'm obviously missing something as the expression I've used isn't working.  Where do you put the dynamic content in?  I tried following your instructions faithfully, with the dynamic content in orange, but it wouldn't accept it so ended up with  

     

    formatDateTime(body('get_response_details')?['r50efee1c8f4c4989bef86073c2d41dd6'],)
     
    And still getting the BadRequest error.  Thank you in advance!
  • LeeHarris Profile Picture
    1,026 on 29 Jan 2019 at 14:45:28
    Re: Delay until - action not working

    Hi @PMac

     

    You can make use of expressions within Flow to format your Dynamic Content how you need it.

    chrome_2019-01-29_14-40-38.png

     

    A full list of DateTime functions can be found here:

    https://docs.microsoft.com/en-gb/azure/logic-apps/workflow-definition-language-functions-reference#date-and-time-functions

     

    A good introduction to using expressions can be found here:

    https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Microsoft-Flow-Expressions-and-how-to-use-them/ba-p/92405

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2