Custom Experssion help
hi, I am importing proxyaddresses from Active directory,it contains the addresses starts with 'SMTP:'. I need to remove the SMTP: from the values importing to FIM.Can any one help me to create custom experssion or rule extension to remove it.
July 2nd, 2010 7:39am

Hi, What have you tried so far? Maybe you could use the Replace function (check the FIM 2010 Function Reference) like this: Replace(proxyaddresses, "SMTP:", "") Cheers, Paolo Paolo Tedesco - http://cern.ch/idm
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2010 2:18pm

Hi Paolo... Do you know if this will work with a multivalued field? Cheers,***** Paulo H. Campos - So Paulo/Brasil ***** http://identitypedia.blogspot.com (in PT-BR)
July 2nd, 2010 3:56pm

Hi Paulo, I don't know how that would work with a multi-valued attribute... I cannot try it right now, but I'll try to have a look. Cheers, PaoloPaolo Tedesco - http://cern.ch/idm
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2010 5:12pm

Hi... Here is the Rule Extension´s Code to do what you want (C#): case "cd.user:proxyAddresses->mv.person:proxyAddressCollection": ValueCollection CS_Collection; mventry["proxyAddressCollection"].Delete(); // to clear old values CS_Collection = csentry["proxyAddresses"].Values; foreach (Microsoft.MetadirectoryServices.Value Itens in CS_Collection) { string[] EachLine = Itens.ToString().Split(new char[] { ':' }); mventry["proxyAddressCollection"].Values.Add(EachLine[1].ToString()); } break; Cheers, ***** Paulo H. Campos - São Paulo/Brasil ***** http://identitypedia.blogspot.com (in PT-BR)
July 2nd, 2010 8:57pm

hi Thanks . As Mr Paulo its a multivalued attribute.I have create mail-id as multivalued attribute in MV and exported the Proxy address.Sure it will work.I have tried with Replace function ,but it throws expection-dll error due to multivalued attribute. Regards, Sridhar
Free Windows Admin Tool Kit Click here and download it now
July 5th, 2010 3:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics