Hi Peter,

On Thu, Oct 25, 2012 at 3:47 PM, Peter Tester <rag4711-otrs@yahoo.de> wrote:
I wrote an postmaster pre-filter that searches in the tickets for an existing external ID, if it's existing a new article to this ticket is added. Otherwise a new ticket is added.
My problem is that I have to define the Agent ID (UserID) in the Ticketsearch function in the pre-filter.
How can I handle searches in all tickets and not only supportef by the selected agent?

This is nice. I think you know we have a Feature Add-On available that does exactly the same?
http://www.otrs.com/en/software/otrs-help-desk/features/otrs-feature-add-ons/feature-add-on-external-ticket-number-recognition/

If you want to use the TicketSearch function for system stuff, such as Postmaster filters, use UserID 1, which is hard-coded in the system to see all tickets.

You'd see this in use throughout the complete code base.
--
Mike