• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Getting Client ID from WHMCS

deepee

Member
I am struggling to get the client ID on the WHMCS module for a given email address. I need to get the client ID so I can create a ticket which requires the client ID to create it. The ticket creation says "Note: By using Get Clients Method you can get the Client ID." but the Get Clients Method get ALL clients?
 

ArshilAhmad

Well-known member
Staff member
Hi @deepee,

Could you please make a short screen recording showing exactly where you are encountering this issue? Also, please share the Workflow URL where you have this concern.
 

Preeti Paryani

Well-known member
Staff member
Hello @deepee,

Thanks for sharing the Bookflow URL. Upon checking, we noticed that you are first trying to add a client and then create a ticket. Currently, the action indicates that a user already exists with this email.

We recommend capturing a new response with an email that does not exist in WHMCS and then creating the client. Once created, you should receive a client ID in the response. You can then map this client ID while creating the ticket, and the action should work fine.

Please give this a try and let us know if the Create Ticket action returns a successful response.
 

deepee

Member
Hi, thanks for reply.
I need to add a client if it does not exist. How would I do this as I am not sure if there is any conditional logic to say, if client does not exist, create client?
 

Preeti Paryani

Well-known member
Staff member
Hello @deepee,

To achieve this use case, the Get Client by Email action is required. Currently, this action does not exist. We have requested its creation, and once it is available, you will be able to add the logic accordingly so that a customer is created only if the client does not already exist.
 

deepee

Member
So it is possible to only create tickets for existing customers? If I create a customer and it fails, then wouldn't it (or shouldn't it) create a ticket based on email address after the customer is created or if it exists and that step fails, create it as it exists? It has worked before?
 

Preeti Paryani

Well-known member
Staff member
Hello @deepee,

No, it would be possible to create a ticket for both cases.

The Get Client by Email action is not yet available. Once released, you’ll be able to use it to fetch the client ID directly from the email received from the server.

  • If the client exists, this action will return the client ID, which can then be mapped while creating the ticket.
  • If the client does not exist, you can first create the client and then use the returned client ID for the ticket.

This will allow you to handle both cases seamlessly.
 
Top