Thx for the reply!
It works just fine now. I would also like to get a list of all the
customers, i've tried with CustomerIDs but all i get there is customer
logins. I need the actual CustomerIDs. The one from `customer_id`.
Which function can i use?
Btw why is aren't there a table called `customers` where you could store
the customers and let the customer_user.customer_id have a reference to
this table? This is great when you integrate otrs with other software
like CRM systems. Plus you could add some info about the customer (the
address of the firm. primary contact, etc. ) and let the info in
customer_user only be about the actual user.
regards,
safl
Martin Edenhofer wrote:
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!
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev