For “Personalemailaddress” and “secondaryEmail”, I can you have used firstvalid operation. Want to know if you are trying to populate “-” if there are no values coming from source? In this case it should be like
This transform will calculate “Personal Email” value.
If “Personal Email” coming from HR-Source is empty or null the value of “Personal Email” should be populated by the value of “secondaryEmail” coming from “ABC” source.
If the value of “Personal Email” is coming from HR-Source it should stay.
If there is no value in both source it should be"-".
I believe the use-case here if Personalemailaddress exists then return the value otherwise return secondaryEmail .
It can be simply achieved by using firstValid transform instead static transfrom , it will also eliminate the need to writing velocity part of it.
See here for more detail: First Valid | SailPoint Developer Community
Hi @j1241
FirstValid does not need any if else condition, it just returns 1st value if exists. This transform looks good to me. Just check once if it is working.