Hello Jeroen,
my $user = RT::User-new( $CurrentUser );
$user-Load( $user_id_or_name );
if ( $user-id ) {
... exists ...
} else {
... doesn't ...
}
Check more examples on wiki to figure out what is CurrentUser and look
at POD of RT::User to find more Load* methods.
2009/9/28 Jeroen Baten jba...@onvz.nl:
Hello,
I am making a script that does an auto-assignment based on the contents
of the email.
How can I check in a scrip whether a certain userid already exists?
kind regards,
--
Met vriendelijke groet,
ONVZ Zorgverzekeraar
Jeroen Baten
Stafmedewerker Automatisering
De Molen 66
Postbus 392
3990 GD Houten
Tel: 030 639 65 08
Fax: 030 639 63 25
Deze e-Mail en de inhoud daarvan is vertrouwelijk. Indien dit bericht niet
voor u bestemd is, verzoeken wij u vriendelijk deze e-mail direct aan ons te
retourneren en daarna te verwijderen. Openbaarmaking, vermenigvuldiging,
verstrekking en/of gebruik door derden van dit e-mail bericht en/of
informatie is niet toegestaan. De verzender sluit elke aansprakelijkheid uit
in verband met het niet juist, onvolledig of niet tijdig overkomen van de
informatie in deze e-mail.
Deze e-mail is gecontroleerd op virussen.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com