Hi,<br><br>For users we've added an extra CF which is an autocomplete field containing a list of roughly 450 organisations that we work with. We had to make a separate CF for this in order to help our users a little, saves typo's and makes adding an organisation to a user easy. So basically we're ignoring the RT default Organisation field and have a separate CF for this purpose.<br>
<br>The second thing we now want is to show that organisation name (the one in the organisation CF) in our tickets, so that we can make nice reports based on that information.<br>This is where I'm stuck, I can't seem to figure out how to read the CF for a requestor (or any user) and thus am unable to write the value into a ticket CF.<br>
<br>I know how to read and write into ticket CF's, but I have no clue on how to read information from a requestor of a ticket.<br><br>Reading information from a tidcket CF:<br><br><span style="font-family: courier new,monospace;">$self->TicketObj->FirstCustomFieldValue('Custom Field Name');</span><br>
<br>Writing information into a ticket CF:<br><br><font face="'courier new', monospace">$self->TicketObj->AddCustomFieldValue(Field => 'Custom Field Name', Value => $my_owner);</font><br><br>Or, instead of a variable use a fixed value between single quotes.<br>
<br>I also know that this piece of code gets a ticket requestor e-mail address:<br><br><span style="font-family: courier new,monospace;">my $requestor_address = $self->TicketObj->RequestorAddresses;</span><br><br>But thats about as far as I'm able to get....<br>
<br>Can anyone point me in the right direction for this one?<br><br><br clear="all">-- Bart<br>