Hello, in our environment we have employees with multiple AD accounts linked to their person record. When we fire templates on an employee whose manager has multiple AD accounts linked the correct account appears as the manager (UID_PersonHead@Person) on the person record but the incorrect account appears on the ADS Account (UID_ADSAccountManager@ADSAccount). I have provided the custom scripts that we have in Designer. It may be something simple that I am just over looking, any help would be appreciated. Thank you
ADSACCOUNT Table UID_ADSAccountManager Column
Dim f as ISqlFormatter=connection.SqlFormatter
SelectCase ($ManageLevel:Int$)
Case0:'Unmanaged (do not get data from employee)
Case1:'Managed (fill all possible fields about employee)
Value = connection.GetSingleProperty("ADSAccount", "UID_ADSAccount", f.Comparison("UID_Person", $FK(UID_Person).UID_PersonHead$, valtype.string))
CaseElse:'Unspecified manage level
ThrowNew ViException(#LD("Non specified manage level: {0}", $ManageLevel:Int$)#)
EndSelect
Person table UID_PERSONHEAD Columns
Value=$FK(UID_Department).UID_PersonHead$
Thanks,
Jim