
Hi Simon, Simon A. F. Lund wrote:
I'm trying to write my own module in order to make a different queueview. I have a simple question to the function TicketSearch. I wan't to get all tickets from a customer should't this be correct:
@ViewableTickets = $Self->{TicketObject}->TicketSearch( Result => 'ARRAY', Limit => 100, CustomerID => 'Customer A/S', StateIDs => [1,2,3,4,5,6,7,8,9], );
Thing is it doesn't work i can only get tickets out if i specify: CustomerUserID => 'loginname', CustomerID seems to have no effect.
But i do not wish to do this since i have multiple logins for one customer and only specifying the user won't give me all tickets from that customer.
CustomerID as STRING or as ARRAY sould work fine. But if you use PostgeSQL and OTRS 1.3 the CustomerID is casesensitiv. Anyway, you also need to add UserID => $Self->{UserID}, because TicketSearch() need to know what user is looking for tickets.
regards, Simon
Martin -- ((otrs)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!