So i am most like am going to take dummy moment on this but when i run this rule for create it adds the values as needed. However, when someone goes to update this account from a request the display name is adding the prefix again. Does anyone know what the check check is to not that happen and only on create add the prefix.
As it’s a static primitive transformation which is being used here. Currently the double prefixName is coming due to the returned name from the accountTypeValue which is not “Bot” in your case.
So the retuned value itself is coming as SVC_SPNonHumantest03 so post transformation value is coming as SVC_SVC_SPNonHumantest03 as per the configured transformed.
Kindly check the identity displayName from the source before applying the transformation.
I ended up adding another condition that only applies to create however i cannot figure out the last } } to end the code do you see wht what i missing at the end
your better bet would be to add a condition in your if/else to first check whether the $fn value already starts with svc, and if it does, skip adding it: