Skip to main content
Limited Release
Forms are in limited release and are not generally available. Contact your account manager to request access.

Look Up a Contact by Email Address

Build a form where the visitor types their email address and the form immediately shows the contact and account it matched in Autotask. The visitor confirms they are the right person before they finish the request, and your actions receive the matched details instead of guessing later.


Overview​

PiecePurpose
email fieldThe address the visitor types.
Look up contact workflowQueries Autotask for a contact with that address.
contact_name fieldCalculated. Shows the matched contact's first name.
company_name fieldCalculated. Shows the matched contact's account name.

Related pages:


Before You Start​

  1. Connect Autotask. See Autotask Connections.
  2. Create a form and give it a name. See Forms.

Step 1: Add the Email Field​

Select the Input tab, then select Add Field.

FieldValue
Nameemail
LabelYour email address
TypeString
RequiredChecked

Select Save.


Step 2: Create the Lookup Workflow​

Select the Pre-Submission Workflows tab, then select Add Workflow.

FieldValue
NameLook up contact
Run this workflow onField change
Recalculate when these fields changeemail

Select Add Action and add API: Query for One Object.

SettingValue
Store the results in variablecontact
Autotask Entity Type to QueryContact
Query conditionEMailAddress equals {{input.email}}

Leave Generate an exception if no results unchecked. An address with no match should leave the fields blank rather than fail the workflow.

Select Save Workflow. The tab now lists the properties the workflow produces, such as custom.contact.FirstName.


Step 3: Add the Calculated Fields​

Return to the Input tab and select Add Field.

FieldValue
Namecontact_name
LabelWe found you as
TypeString
Populate this field with a Pre-Submission Workflow outputChecked
Pre-Submission WorkflowLook up contact
Propertycustom.contact.FirstName

Select Save, then add a second field the same way.

FieldValue
Namecompany_name
LabelYour company
TypeString
Populate this field with a Pre-Submission Workflow outputChecked
Pre-Submission WorkflowLook up contact
Propertycustom.contact.Account.AccountName

One workflow run fills both fields.

Showing a full name

The Property list offers the properties the query returns. To show a combined value such as Ada Lovelace, add a Render Text and Store as Variable step to the workflow with the text {{custom.contact.FirstName}} {{custom.contact.LastName}}, store it as contactFullName, then map the field to custom.contactFullName.


Step 4: Use the Values in Your Actions​

Select the Actions tab and build what the form should do on submission. The matched values are available as ordinary inputs:

  • {{input.contact_name}}
  • {{input.company_name}}
  • {{input.email}}

Save the form.


Step 5: Test It​

  1. Select Test on the form and enter a known contact address, or open the public URL.
  2. Type the address, then click out of the field.
  3. The calculated fields show "Calculating…", then the matched contact and account.

If both fields stay blank, the address did not match a contact. Open the form attempt's history and expand its Pre-Submission Workflow entry in Execution Logs to see the query that ran.


Next Steps​

  • Show a warning field when no contact matched, using Conditional Visibility on a text field and a rule that checks the workflow property is empty.
  • Require a match before submission with a submission condition set to Allow only if condition matches, where Workflow: Look up contact / custom.contact.id is not empty.