Jump to content
Jayer

Hook: TicketPiping | Get ticket ID

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

Share this post


Link to post
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/ 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines