cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SilasCyro
Level: Powered On

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
Mike8
Level 10

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
Mike8
Level 10

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

SilasCyro
Level: Powered On

Re: GENERATE A CUSTOM REQUEST ID

Hey @Mike8

 

Works like a charm Smiley Very Happy

Thanks so much for the assistance.

 

Regards,

Silas

Mike8
Level 10

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.

SilasCyro
Level: Powered On

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,979)