We have hit a wall and need a little push to the finish line on this. Hopefully the great things i have heard within this community will be able to help as we are almost done but for this last min requirement. The code below is run in the identity profile on manager. When the user is onboarded if they do not have a manager yet in the field we put no manager and then get updated when added. How ever when the user is disabled in the system their manager gets removed and we need to keep that manager still in the field in IDN though the source removed it.
A simple static or conditional transforms by themself works fine but smash them together as it should I cannot get the field to display āManager on first loadā it keeps throwing out error
The Manager stays when the user goes inactive and is removed with the above code . The problem comes when a new person comes in without a manager it is erroring out and completing the profile build. What i need it to do is display āNo Managerā first when the account is built and then update that field when its added later. after that the other code would kick in from the LCS of the user
I did some rework and have it all working but for getting the āNo managerā to display when there is none when user is active. I will always show the current or past manager when they are active or inactive which is what is expected. Right now it comes in blank when a new user comes in and has no manager yet which needs to be displayed as āNo managerā
this is throwing a error as below.
The code i had before is working and for inactive and null values however all i need to do is be able to add the wording " No Manager" when the user is active and does not have a manager
Use case
When a user becomes āinactiveā, they need to keep the manager they have while the source has removed its manager value.
When a user is onboarded, they may not have a manager so when they are active but have no manager the blank field need to display āNo Managerā until it is updated at the source with a manager which then would replace the āno managerā with the new correct value
Error:
There was an exception while calculating the value for this attribute. Error rendering template: #if($status==āinactiveā)manager#{else}$manager#{end}
Thank you everyone and GOKUL on the 3rd eye. It is awesome to have such a great group of people helping for the greater good of each other. Please feel free to reach out if you need help as well