Odd template behavior in 9.3

I have a template for UNSAccountB and when I create an account manually the template works fine, but when I do it using a business role it doesn't work.

This is the relevant portion of the template (they are identical between FullManaged and Unmanaged):

Else
	Dim CentralAccount As String = $FK(UID_Person).CentralAccount$

	If $FK(UID_Person).CCC_ImportSource$ = "ACME" Then
		CentralAccount = CentralAccount.Substring(0, CentralAccount.Length - 4)
	End If

	Value = CentralAccount
End If

Parents Reply
  • I create it manually by clicking the plus sign in Custom Target System-module and searching for the right Person and assigning a account def and behavior.

    If $FK(UID_UNSRootB).Ident_UNSRoot$ = "ACME Europe" Then
    	Value = CCC_AcmeEurope_CreateUsername($UID_Person$, $FK(UID_Person).CentralAccount$)
    ElseIf $FK(UID_UNSRootB).Ident_UNSRoot$ = "ACME Asia" Then
    	Value = CCC_AcmeAsia_CreateUsername($UID_Person$, $UID_UNSRootB$, $FK(UID_Person).CentralAccount$)
    ElseIf $FK(UID_UNSRootB).Ident_UNSRoot$ = "ACME Africa" Then
    	Value = $FK(UID_Person).DefaultEmailAddress$
    ElseIf $FK(UID_UNSRootB).Ident_UNSRoot$ = "ACME Americas" Then
    	Value = $FK(UID_Person).EmployeeID$

Children