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 / formula to delay email...
Power Automate
Answered

formula to delay email until next day?

(0) ShareShare
ReportReport
Posted on by 53
formatDateTime(addDays(body('Get_response_details')?['submitDate'],sub(5,dayOfWeek(body('Get_response_details')?['submitDate']))),'yyyy-MM-dd')

 Im currently using this formula which makes a flow trigger sending an email on a friday, but i want to slightly change it so that it will instead cause the email to be sent the next day

Categories:
I have the same question (0)
  • powersusers Profile Picture
    53 on at

    one more question: when trying to save the flow it gives error

     

    "Correct to include a valid reference to 'Get_response_details' for the input parameter(s) of action 'Delay_until'."

     

    https://i.imgur.com/DXOmKBC.png

     

    would anyone know what causes this issue? 

  • VJR Profile Picture
    7,635 on at

    Hello @powersusers 

    If you are referring about adding 1 day to today then could you try arranging your expression similar to the below.

     

    addDays(utcNow(),1,'yyyy-MM-dd')

  • VJR Profile Picture
    7,635 on at

    Regarding your second post, the image does not open up. Says "The webpage at https://i.imgur.com/DXOmKBC.png might be temporarily down"

     

    Looks like something is not given like the way it should be. Can you take some hints on the error from this post below

    https://powerusers.microsoft.com/t5/General-Power-Automate/Get-Form-response-details-as-JSON-error-message/td-p/578811

     

  • Verified answer
    v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @powersusers 

    If you want to send an email notification the next day, please use the method provided by @VJR .

    Because timestamp needs to be filled in do until action, so please format the time as 'yyyy-MM-ddTHH:mmZ'.

    'HH' refers to hour, 'mm' refers to minute.

    vLilyWmsft_4-1635830858961.png

    Do until at 10 o'clock the next day.

    vLilyWmsft_5-1635831227173.png

    If you want to send an email notification delay one day, you can use delay action directly.

    vLilyWmsft_0-1635829697366.png

    Regarding your second question, because the trigger you used is when a new tweet is posted, Get response details is used together with When a new response is submitted trigger. So it will have an error.

    vLilyWmsft_2-1635829928317.png

    Hope the content above may help you.

    Best Regards

  • natng Profile Picture
    5 on at

    I've tried your method to delay until 09:30AM on a particular day. But its not working, is this a time zone issue? Previously without fixing it to a specific time of the day, my addday formula works fine. Please help. 

     

    addDays(triggerOutputs()?['body/CollectionDateTime'],-2, 'yyyy-MM-ddT09:30:00Z')

     



    natng_0-1660269418984.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard