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 / Automatic greeting of ...
Power Automate
Unanswered

Automatic greeting of "Good morning" or "Good Afternoon" or "Good night"

(0) ShareShare
ReportReport
Posted on by 20

Hello,

 

I want to send an email with the header Automatic "Good morning" or "Good Afternoon" or "Good night",  through Power Automate.
Can you help me if there is a possibility in the functions?
In Excel I know the formula:
=IF(TIME(NOW())<=11;"GOOD MORNING";IF(TIME(NOW())>=18;"GOOD NIGHT";"GOOD AFTERNOON"))

 

Thanksss

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at

    Hi @KarinaFerreira ,

     

    If you required to send only  mail then you can use cloud flow and based on the time it will be auto trigger bot.

    FYR

    Ahammad_Riyaz_0-1654604670557.png

    Ahammad_Riyaz_1-1654604705447.png

     

    Here you can able to add one more action send mail, 3 diff bot u can create. Else if you required in Desktop means we can try from there as well.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at

    Hi @KarinaFerreira ,

     

    If you required in Power automate desktop use this code.

    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: CurrentDateTime CustomFormat: $'''HH''' Result=> FormattedDateTime
    IF FormattedDateTime <= 11 THEN
     Display.ShowMessageDialog.ShowMessage Message: $'''good morning''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
     Email.SendEmail.Send SMTPServer: `` Port: 25 EnableSSL: False AcceptUntrustedCertificates: False SendFrom: `` SendTo: `` Body: $'''''' IsBodyHtml: False
    ELSE IF FormattedDateTime >= 18 THEN
     Email.SendEmail.Send SMTPServer: `` Port: 25 EnableSSL: False AcceptUntrustedCertificates: False SendFrom: `` SendTo: `` Body: $'''''' IsBodyHtml: False
     Display.ShowMessageDialog.ShowMessage Message: $'''good night''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
    ELSE
     Email.SendEmail.Send SMTPServer: `` Port: 25 EnableSSL: False AcceptUntrustedCertificates: False SendFrom: `` SendTo: `` Body: $'''''' IsBodyHtml: False
     Display.ShowMessageDialog.ShowMessage Message: $'''good afternoon''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
    END
    

     

    Ahammad_Riyaz_2-1654605270493.png

     

     

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • KarinaFerreira Profile Picture
    20 on at

    Hello @Ahammad_Riyaz 

     

    I have my flow created with these connectors.

    KarinaFerreira_0-1654605457813.png

    To use this code in the email, he did not accept.
    I believe I did something wrong:

    KarinaFerreira_1-1654605687733.png

     

    Thankssss

  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at

    Hi,

     

    Here i was taken currentdatetime and converted to our particular time zone.

    Ahammad_Riyaz_0-1654665080192.png

    Ahammad_Riyaz_1-1654665168010.png

     

    Ahammad_Riyaz_2-1654665203568.png

     

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard