Subworkflow: Check Email Address Against Free Providers List Crate
What does the Subworkflow: Check Email Address Against Free Providers List Crate do?
Use this subworkflow in your workflows to determine if a provided email address is from a free provider.
How the Crate works
The subworkflow downloads a list of free providers according to HubSpot's knowledge base and checks the email address against that list.
Input: email_address - string email address to check
Output: free_provider - boolean of whether the email provided is from a free provider
Workflow breakdown
The workflow begins when triggered with an email address input parameter that needs to be checked against a list of free email provider domains.
The set_domain task executes first using the noop action to extract the domain portion from the provided email address by splitting on the @ symbol, taking the last part, and converting it to lowercase, then publishing this value as
email_domainto the workflow context.The get_list_of_free_provider_domains task runs in parallel using the HTTP Request action to retrieve a CSV file containing free email provider domains from a HubSpot URL, then processes the response by splitting the data on newlines and trimming whitespace from each domain, publishing the resulting list as
free_domainsto the workflow context.After both the set_domain and get_list_of_free_provider_domains tasks complete successfully, the check_list task executes using the noop action to perform the actual comparison by checking if the extracted email domain exists within the list of free provider domains.
The check_list task publishes a boolean result as
free_providerto the workflow context, indicating whether the provided email address uses a free email provider domain or not.The workflow completes by outputting the final result through the
free_providervariable, which contains true if the email address uses a free provider domain or false if it uses a non-free domain.
Unpack the Subworkflow: Check Email Address Against Free Providers List Crate
Navigate to Crates > Crate Marketplace in the left side menu Rewst platform.
Search for
Sub-workflow: Check Email Address Against Free Providers List.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
Enter Time Saved under Crate Configuration.
Click Unpack.
Use the subworkflow
Navigate to Automations > Workflows in the left side menu of your Rewst platform.
Click into the workflow where you would like to use the subworkflow, or create a new workflow.
Search in your actions list for
Check Email Address Against Free Providers List.
Click and drag the action to the Workflow Builder canvas.
Enter the email address you would like to check into the relevant field of the task's configuration menu.

Last updated
Was this helpful?

