Hi,
I need help with implementing auto-generated Employee Codes in OutSystems.
I have an Employee entity, and whenever a new employee record is created, I want the system to automatically generate a unique Employee Code in the following format:
Here:
I want this code to be generated automatically during the Create action of the Employee entity.
Also, I would like to use OutSystems built-in functions (such as Generate Password or similar built-in logic/functions) instead of writing custom SQL queries, if possible.
Could someone please explain:
I will attach the entity structure screenshot for reference.
Hi @ATUL TIWARI ,
To generate the EmployeeCode you need to follow the below steps.
I hope this will help you. Let me know if you need any OML for that.
Thanks,
Sudip
i was trying in your way .. if you have the oml then please send me ..
Hey @ATUL TIWARI ,
Check the OML below. If you need any help let me know.
ok, it is working fine, Thank you.