This worked for me, just in case someone else is looking for an example.
<string>srcBean.getDatasetFirstValueById("mail").split("@")[0]</string>
From: Jon C Kidder [mailto:[email protected]]
Sent: Tuesday, December 03, 2013 4:11 PM
To: Michael Swinney; [email protected]
Subject: RE: [lsc-users] remove @domain.com from getdataset
This can be done with any number of JavaScript string functions. There are
examples of using JavaScript in your tasks scattered throughout the
documentation and the mailing list archives.
-Jon C. Kidder
American Electric Power
Middleware Services
Email: <mailto:[email protected]> [email protected]
Phone: 614-716-4970
From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Michael
Swinney
Sent: Tuesday, December 03, 2013 4:03 PM
To: [email protected] <mailto:[email protected]>
Subject: [lsc-users] remove @domain.com from getdataset
This is an EXTERNAL email. STOP. THINK before you CLICK links or OPEN
attachments.
_____
I'm new to LSC Ldap and was trying to figure out a way to remove everything
starting with @ sign from the get data process as I only want the data
before the @ sign. Not sure if this is possible and I may be on the wrong
track completely.
i.e. [email protected] <mailto:[email protected]> , but the domain can be
different, so I was just trying to return the johndoe portion.
Lsc.xml data item
<string>srcBean.getDatasetFirstValueById("mail")</string>
Thank you
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users