Thanks. i still have the same issue but i change my source attribute to one value.
----- Mail original ----- De: "Clément OUDOT" <[email protected]> À: "Thierry DONGMO KEUMO" <[email protected]> Cc: "lsc-users" <[email protected]> Envoyé: Vendredi 21 Octobre 2016 18:51:10 Objet: Re: [lsc-users] Constraint_attribute_type 2016-10-21 13:31 GMT+02:00 Thierry DONGMO KEUMO <[email protected]>: > Hello, > > How can i do to get only one value of a multi-valued attributes. > eg: mail: [email protected] > mail: [email protected] > > I think i should test my values before set it but i don't know how. > > <dataset> > <name>aliasmail</name> > <policy>KEEP</policy> > <createValues> > <string>js: if ... srcBean.getDatasetFirstValueById("mail")</string> > </createValues> > </dataset> > getDatasetFirstValueById should only return one value. Use getDatasetValuesById to get an array of all values. Clément. -- Thierry DONGMO Université Paris Dauphine PSL D109 - 0172605255 _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

