Sync Mapping FK relation ADSGroup - EX0DL

Hi all

I have a Synch-Mapping question.

I am in the AD Synch-Project mapping from the ADSGroup.

From that point, I want to have the values "EmailAddresses" which are stored in the table "EX0DL".

There is an FK relation from EX0DL to ADSGroup. How can I get the value EmailAddresses from EX0DL?

I tried with a scripted property as outlined in a previous post "synch-mapping-fk-relation-adsaccount-ex0mailbox".

I hve tried the script suggested as the solution.

My virtual attribute has the following Read code:

Imports VI.Projector.Connection
Dim email = SystemObject.Connection.QueryObject(SystemQuery.From("EX0DL") _
.Select("EmailAddresses").Filter(String.Format("UID_ADSGroup='{0}'", $UID_ADSGroup$))).Result.First.GetValue("EmailAddresses").AsString

return email 

When using this virtual property, I do get not the email addresses back, but only System.String[].

When I try to not read a multi-value attribute, for example the alias, I do get the value of the alias back with no issue. It seems that with above code I cannot properly read a multi-value attribute in a table. Or anybody has any ideas how to get the values out from System.String[] ?

Thanks.

Parents Reply Children
No Data