You can use environmental vars right in kix.

For example
 Code:
? %clientname%


There is probably a better way, as I don't use Citrix, but here is my stab using the Sessiontype UDF...

untested
 Code:
$ID=iif(sessiontype="Citrix ICA session",%clientname%,@wksta)


SessionType() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=195471#Post195471

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1
_________________________
(... better days ahead)