Basically I need a transform that will be a concat of the company acronym + employee registration number.
It doesn’t happen that the acronym will change according to the registration number. I’m trying the way below but it gives an error in the print screen.
Hi Bruno,
You don’t need the “attributes”:{} that is inside the first part of the concat.
Beyond that, I recommend that you build the transform slowly and in stages.
Hi @raibom , transform type should be static as per the velocity condition given. Also, you can use “leftpad” transform in the same “chapa” attribute transform instead of doing it separately.
I had 2 problems, the first was that I had to use the type: “static” and I didn’t know that.
Second, I was missing the #end in the velocity template.
After correcting it, it looked like this:
Now I’m trying to remove the leftPad operation, doing it directly in velocity but I’m having problems. I tried this way using copilot but it gave an error as shown in the print screen:
@JackSparrow , What I want now is to do the left padding directly in velocity. As I showed in the last example, sailpoint doesn’t seem to recognize this .pad method.
I would like to know if this is possible.
@GOKUL_ANANTH_M, The trasnform with “type”: “leftPad” did work. I would just like to know if it would be possible to do the left padding directly in velocity. This way the transformation would be smaller and more objective.
@GOKUL_ANANTH_M Is there any way to convert the character to an integer?
I say this because my transform didn’t work. The variable $employeeNumber comes with the value 010000 and I need to convert it before the condition. I tried $employeeNumber.parseInt() but it gives a template error.