Jump to content
Sign in to follow this  
pKris

Passing search parameters through a URL (search for a customer via URL)

Recommended Posts

I'm attempting to integrate(ish) my phone system with WHMCS, currently I have the option when the phone rings from an inbound call to pass a URL to Chrome and have it open the contact record - right now that's Hubspot; however, for the bulk of our staff this is useless and having it open the WHMCS profile would be more useful.

Is it feasible to perform a customer search by phone number through a URL, such as https://whmcs.url/admin/clients.php?phonenumber=1234567890 or something?

Share this post


Link to post
Share on other sites

The client search expects a POST and so passing the phone number in a get wont work.   What you could do is use a hook that checks for "incomingCallNumber" in get on the clients page, searches, then redirects to the client it found. 

Share this post


Link to post
Share on other sites

Thanks letting me know Steven, as an interim solution I've implemented a solution based on this hook to initiate a search, I'll keep this thread updated if I find something that pulls the client page up automatically rather than initiating an intelligent search. 

Share this post


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

Sign in to follow this  

  • 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