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. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

