Logo
Home
Resources

Product

Custom Workflow

Resources

Blog
Youtube
Template
Home
>
Product
>
Template Top
>
detail

HubSpot Custom Workflow Guide: How to "Search" for Tickets and Auto-Associate Contacts

When using HubSpot's Service Hub, a frequent need is to link a contact's new inquiry (from Contact A) to an existing support ticket (Ticket X). For example, a customer might submit a form providing an existing "Order Number" or a previous "Ticket ID."

This process of dynamically searching for a separate object (in this case, a "Ticket") and associating it with the enrolled contact can be achieved using 3rd-party custom workflow actions.

This article explains the purpose, use cases, and setup steps for the "Ticket Search Action" shown in your video.

‍

Demo Video

Over view
Code

Detail

Purpose of the Action

The primary purpose of this action, when used in a contact workflow, is to search for a "Ticket" record that matches specific criteria (e.g., Ticket Name, Order Number) and retrieve its "Record ID" (Ticket ID).

The ultimate goal is to use this retrieved Ticket ID with the separate "Association Action" (which you've confirmed is also provided by this app) in a subsequent step to automatically associate the enrolled contact with that found ticket.

Common Use Cases

This action helps streamline service operations by automatically linking customer inquiries to the correct support cases.

  • Consolidate Inquiries to an Existing TicketA contact (Contact A) submits a "Support Form" about a previous order, "Order #12345." The workflow searches for an existing ticket where a custom property "Order Number" equals "12345" and automatically associates Contact A with that ticket.
  • Link Reports to a Master TicketWhen a contact submits a bug report about "Product A," the workflow can search for the master ticket named "Product A Bug Report - Master" and associate the contact as a reporter.
  • Dynamic Search by Ticket NameThe workflow searches for a ticket based on a "Subject" line provided by a contact in a form, matching it to the "Ticket Name" (this is similar to the use case in the video).

Step-by-Step Guide from the Video Demo

The video demonstrates the setup and execution of the "Ticket Search Action."

Step 1: Add the Action (0:04 - 0:09)In the workflow editor, click the "+" icon. The left sidebar opens, and the video shows the user selecting the "Custom Workflow Business V2" app.

Step 2: Select "Ticket Search Action" (0:10 - 0:12)From the app's list of actions, click "Ticket Search Action" to add it to the workflow.

Step 3: Configure Search Criteria (0:13 - 0:39)In the action's setup panel on the left, you define which ticket you are looking for.

  • First Condition:Set the Condition - Property Name (e.g., Ticket name), the Condition - Search Operator (e.g., Equal to), and the Condition - Value (e.g., "popo hire").(In a real-world scenario, the Value would typically be a personalization token from the enrolled contact, such as a custom property, rather than a static value.)
  • Second Condition (Optional):The action allows a second condition (the video shows Ticket description with value 44) and an Operator between Conditions (AND/OR).
  • Exclusion:The Ticket ID field can be used to exclude a specific ticket from the search results.

Step 4: Save Configuration (0:40 - 0:42)Click the "Save" button to complete the action setup.

Step 5: Run Workflow & Check History (0:43 - 0:52)The workflow is turned on and run. In the "History" tab, the "Ticket Search Action" shows as "Action succeeded."The log details (right panel) show the "OUTPUTS," where search_results has successfully returned the found Ticket's Record ID (e.g., "2614080912").

Step 6: Verify the Result (0:53 - 0:56)(As a supplement to the demo) The user then switches to the "Tickets" list in HubSpot and confirms that the ticket with ID "2614080912" is indeed the one named "popo hire."

[IMPORTANT] How to Use the Ticket ID to Associate the Contact

This action only finds the Ticket ID. As you confirmed, to associate the contact with this ticket, you must combine it with another "association" action provided by this same 3rd-party app.

  1. Add an If/then BranchImmediately after the "Ticket Search Action," add a standard HubSpot "If/then branch" action.
  2. Set Branch CriteriaSet the branch condition to check if the output from the "Ticket Search Action" (search_results) "is known".
  3. Add the "Association" ActionIn the "Yes" (found) branch, click "+" and select the "Associate Object by ID" action (or similarly named action) provided by this 3rd-party app.
  4. Execute the AssociationConfigure this association action as follows:
    • From ID: Use the [Contact Record ID] token (for the contact enrolled in the workflow).
    • To ID: Use the [search_results] token (the Ticket ID you just found).

This completes the full automation, enabling a contact (Contact A) to be automatically associated with a specific ticket (Ticket X) based on your search criteria.

‍

Source Code

HTML
CSS
Javascript

FAQ

Is this "Ticket Search Action" a standard HubSpot feature?

No, it is not. This is a custom action that becomes available by installing a third-party app called "Custom Workflow Business V2." A standard HubSpot workflow branch primarily checks conditions on the contact currently enrolled in the workflow (Contact A) (e.g., "What is Contact A's industry?"). The key difference with this action is that it can search the entire database for a different ticket (e.g., "the ticket that has the order number Contact A submitted in a form").

Does this one action automatically associate the found ticket (Ticket X) with the contact who is enrolled in the workflow (Contact A)?

No, it does not. As emphasized in the article's "【Important】How to Associate the Contact with the Retrieved Ticket ID" section, this action's only job is to search for and find the Record ID of the matching ticket. To actually associate the contact with the ticket, you must add these steps after this action: An "If/then branch" to check if a ticket was found. A separate "Association Action (Associate Object by ID)" (likely provided by the same app) where you specify Contact A's ID and the search_results (the Ticket ID) retrieved from this action.

The video shows a fixed text value as the search criteria. Can I perform a dynamic search, like searching for a ticket based on "the order number the contact entered in a form"?

Yes, you can. That is the most common use case for this action, as explained in the "Main Use Cases" section. Instead of typing a fixed value (popo hire) into the search criteria (Condition - Value) in Step 3, you would set a property token from the contact enrolled in the workflow (e.g., [Order Number submitted in form]). This allows you to perform a dynamic search, such as "find the ticket with the order number that Contact A specified."

Search

Search more

Related Template

Need Customization?

We can customize this sample to match your specific business requirements.

Book Free Consultation

HubSpot Custom Workflow Guide: How to Auto-Search and Recommend Marketing Events

HubSpot Custom Workflow Guide: How to Auto-Recommend Files with Generative AI

HubSpot Custom Workflow Guide: How to "Search" for Marketing Campaigns and Use Their Data

HubSpot Custom Workflow Guide: How to "Search" for Tickets and Auto-Associate Contacts

HubSpot Custom Workflow Guide: How to "Search" for Deals and Auto-Associate Contacts

Company Info
Name : SweetsVillage .Inc
CEO :
‍
Tomoo Motoyama

HomeTemplateCustomWorkflow
Terms & ConditionsPrivacy PolicyContact us

Copyright ©SweetsVillage .Inc

Back To Top Image