cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

GENERATE A CUSTOM REQUEST ID

Hey Community,

 

I am working on an application for our company, one of the requirements is that the application should generate a request ID and the format of the ID should be the Employee's Name concatenated with the date and time (the date and time should be the current date and time when the request is raised and the time should include the seconds), an example would end up looking like this (EmployeeName_11132018080412).

To break it down (EmployeeName_mm/dd/yy/hh:mm:ss, however this is all formated as a text value and can not be edited by the user.

Please, I need some help on this.

 

Regards,

Silas

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: GENERATE A CUSTOM REQUEST ID

Hello SilasCyro,

You can try this..
Label1.Text= Concatenate(User().FullName,"_",Text(Now(),"ddmmyyyyhhmmss"))

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

Re: GENERATE A CUSTOM REQUEST ID

Hello SilasCyro,

You can try this..
Label1.Text= Concatenate(User().FullName,"_",Text(Now(),"ddmmyyyyhhmmss"))

View solution in original post

Highlighted
Frequent Visitor

Re: GENERATE A CUSTOM REQUEST ID

Hey @Mike8

 

Works like a charm Smiley Very Happy

Thanks so much for the assistance.

 

Regards,

Silas

Highlighted
Super User
Super User

Re: GENERATE A CUSTOM REQUEST ID

Great 🙂
I would also recommend to check this.
https://baizini-it.com/blog/index.php/2017/08/29/powerapps-user-function-cache-current-user-onstart/
And replace the User() with a global variable that you set OnStart of the application.

Highlighted
Frequent Visitor

Re: GENERATE A CUSTOM REQUEST ID

Hi @Mike8

 

Thanks so much for the extra information Smiley Very Happy

I am fixing all concerns with almost just one formula.

 

Regards,

Silas

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,110)