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

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
    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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard