cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Customize Greeting inside an App

Hello,

 

I just want to ask if there is a way to customize greetings in an app depending on the time of the day. Like before 12PM if anyone accesses the app it says "Good Morning [User]" and so on depending on the time. Any predefined formula available? Will really appreciate your help.

 

Regards,

Arslan

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Hi @Anonymous

You can use the Now() function to get the current time and the Hour function to extract the hour.

Hence something like this in the text property of a text box:

If(Hour(Now())<12, "Good morning, ", Hour(Now())<17, "Good afternoon, ", "Good evening, ")&User().FullName

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

Hi @Anonymous

You can use the Now() function to get the current time and the Hour function to extract the hour.

Hence something like this in the text property of a text box:

If(Hour(Now())<12, "Good morning, ", Hour(Now())<17, "Good afternoon, ", "Good evening, ")&User().FullName

View solution in original post

Highlighted

Hello 

I am trying to use this formula

If(Hour(Now())<12, "Good morning, ", Hour(Now())<17, "Good afternoon, ", "Good evening, ")&User().FullName

But it is not showing the message

IS there something that I need to set up?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,708)