on ‎2023 Sep 09 10:03 PM
Hello All,
I have a custom ID field in employee central personal information portlet and this field should be concatenation of Last 4 characters of last name and first 2 characters of first name, how do i get Last 4 characters of last name and first 2 characters of first name, in the business rule.
Thanks
Shilpa
Request clarification before answering.
You start of with a concatenate, and you'll require 2 substrings:

The last 4 letters is more difficult, but you could first have a variable to get the length (obviously, you'll use a different field than job classification):

Then you could use a substring with that length to determine the last 4 letters of the name (Length can actually also be 4 here):

First 2 letters of first name is via a substring (obviously, you'll use a different field than job classification):

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Jasper.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.