Jump to content

Hook: TicketPiping | Get ticket ID


Jayer

Recommended Posts

Hello,

Currently I'm using hooks TicketOpen and TicketOpenAdmin both of them gives me ticketid.
I need same ticket ID when importing/piping emails to department as tickets.
TicketPiping not giving it.

Have you any idea how to get it?

Thanks

Link to comment
Share on other sites

From the description of that hook, I believe it fires before TicketOpen or Ticket reply hooks for example and so no ticket number is set because it has not been processed.   You could look in the database for the same subject, body, etc to do a best match possible.  

Are you handling the piping for a special reason that can't be handled by the open and reply hooks/ 

Link to comment
Share on other sites

12 minutes ago, steven99 said:

From the description of that hook, I believe it fires before TicketOpen or Ticket reply hooks for example and so no ticket number is set because it has not been processed.   You could look in the database for the same subject, body, etc to do a best match possible.  

Are you handling the piping for a special reason that can't be handled by the open and reply hooks/ 

Thank you for reply. I'm using TicketOpen and TicketOpenAdmin hook for my code and it works.
But I need to do same task when user opens ticket by sending email to department's email.
As I see in the description of TicketOpen it only fires when user opens ticket from admin area.

Link to comment
Share on other sites

On 2/11/2019 at 11:47 PM, steven99 said:

Just did a test and ticketopen fires when whmcs does at least pop3 pulling and so would expect piping to do the same as well as the other ticket reply hooks. 

I have checked it too. It works. Thanks for replies.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated