# Connect Data to Sendlane and automate your tasks

## Why integrate Data with Sendlane

The Data to Sendlane integration helps you sync data, automate manual tasks, and keep your stack aligned — without writing code.

### Track order history across every workflow run

MESA writes order details to a private table each time one is placed. Any workflow can look up that history — for loyalty checks, repeat purchase detection, or reporting — without querying Shopify directly.

### Build a customer loyalty tracker without a CRM

Data stores a running record of each customer's purchase count, total spend, or tier status. Workflows read that record to decide which emails to send, which tags to apply, or which rewards to trigger.

### Keep a running inventory log across all activity

Each time stock moves — sale, return, or restock — MESA writes the update to a Data table. Your other workflows and BI tools can query that record at any time for accurate, current counts.

### Keep Sendlane profiles current as customers shop in Shopify

When a customer's behavior changes in Shopify — a new purchase, a tag update, a loyalty tier change — MESA updates their Sendlane profile in real time. Your segments and automations always reflect who your customers are right now, not who they were at the last sync.

### Trigger Sendlane automations from any Shopify event

When an order is placed, a subscription starts, or a customer hits a milestone, MESA sends the signal to Sendlane and starts the right automation. Your email and SMS marketing runs on the full range of what happens in your store, not just native Shopify triggers.

### Suppress the right customers from campaigns at the right time

When a customer files a return, opens a support ticket, or enters a sensitive window, MESA updates their Sendlane status or tags automatically. Your campaigns reach the right people without anyone managing list hygiene by hand.

## Build any Data and Sendlane automation

MESA helps you connect apps to automate repetitive tasks. A trigger is an event that starts a workflow, and actions are the steps that occur when it's running.

###### Record Created

Triggered when a new record is added to a table.

###### Record Updated

Triggered when a record in a table is created or an existing record is updated.

###### Add Contact Custom Field

Add a custom field on a contact.

- ID
- Custom Field ID
- Name
- Value
- Created At

###### Add Contact Tag

Add a contact tag.

###### Add SMS Consent to Contact

Add SMS consent to a contact. This must be enabled in your account by contacting Sendlane support.

###### Create and Add Contact to List

Create and add a new contact to a list.

- Contacts

###### Create Custom Field

Create a custom field.

- ID
- Name
- Type
- Created At

###### Create Domain Suppression

Create a domain suppression.

- ID
- Domain

###### Create Email Suppression

Create an email suppression.

- Email
- List ID

###### Create List

Create a list.

- Name
- Description
- Sender ID

###### Create Sender

Create a sender.

- ID
- Address 1
- City
- Company
- Country
- From Email
- From Name
- Reply Email
- State Code
- Postal Code
- Is Default
- Created At
- Updated At
- Deleted At

###### Create Tag

Create a tag.

- ID
- Name
- Audience Count
- Created At

###### Delete Contact

Remove a contact from a list.

- Message

###### Delete Contact

Remove a contact.

- Message

###### Delete Contact's Back in Stock

Remove a back in stock from a contact.

- Message

###### Delete Contact's Tag

Remove a tag from a contact.

- Message

###### Delete Custom Field Contact

Remove a custom field from a contact.

- Message

###### Delete Domain Suppression

Remove domain suppression.

- Message

###### Delete List

Remove a list.

- Message

###### Delete Sender

Remove a sender.

- Message

###### Delete SMS Consent from Contact

Remove SMS consent from a contact.

###### Delete Tag

Remove a tag.

- Message

###### Get List of Back in Stock Contacts

Obtain a list of back in stock contacts.

- ID
- Email
- Phone
- Shop
- Platform
- Product ID
- Sku

###### Get List of Campaigns

Obtain a list of campaigns.

- ID
- Name
- Status
- Scheduled At
- Sent At
- Created At
- Updated At

###### Get List of Contact Subscriptions

Obtain a list of contact subscriptions.

- ID
- Subscriber ID
- List ID
- List Name
- Is Active
- Is Suppressed
- Added By
- Date Added

###### Get List of Contact's Custom Fields

Obtain a list of custom fields for a contact.

- ID
- Custom Field ID
- Name
- Value
- Created At

###### Get List of Contact's History

Obtain a list of a contact's history.

- Type
- Campaign ID
- Title
- List ID
- List Name
- Amount
- Currency
- Event ID
- Event Name
- Event Location
- Completed At
- Restock
- Processed At
- Event Date

###### Get List of Contact's Segments

Obtain a list of a contact's segments.

- ID
- Name
- List ID
- Match
- Last Count
- Processed At
- Created At
- Is In Progress

###### Get List of Contact's Subscriptions

Obtain a list of contact's subscriptions.

- ID
- Subscriber ID
- List ID
- List Name
- Is Active
- Is Suppressed
- Added By
- Date Added

###### Get List of Contact's Tags

Obtain a list of a contact's tags.

###### Get List of Contacts

Obtain a list of contacts from a contact list.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Get List of Contacts

Obtain a list of contacts.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Get List of Custom Fields

Obtain a list of custom fields.

- ID
- Name
- Type
- Created At

###### Get List of Domain Suppressions

Obtain a list of domain suppressions.

- ID
- Domain

###### Get List of Email Suppressions

Obtain a list of email suppressions.

- ID
- Email
- List ID

###### Get List of Segment's Contacts

Obtain a list of all the contacts that are in a given segment.

- ID
- Email
- First Name
- Last Name
- Phone

###### Get List of Segments

Obtain a list of segments.

- ID
- Name
- List ID
- Match
- Last Count
- Processed At
- Created At
- Is In Progress

###### Get List of Senders

Obtain a list of senders.

###### Get List of Tag's Contacts

Obtain a list of contacts associated with a particular tag.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Get List of Tags

Obtain a list of tags.

- ID
- Name
- Audience Count
- Created At

###### Get List of Unsubscribed Contacts

Obtain a list of unsubscribed contacts.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Get List of Unsubscribed Contacts from List

Obtain a list of unsubscribed contacts from a list.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Get Lists of Lists

Obtain a list of lists.

- ID
- Name
- Description
- Status
- Created
- Sender ID
- Flagged

###### Retrieve Campaign

Grab all details about a campaign.

- ID
- Name
- Status
- Scheduled At
- Sent At
- Created At
- Updated At

###### Retrieve Campaign Report

Grab all details about a campaign report.

- Campaign ID
- Sent
- Opens
- Clicks
- Unique Opens
- Unique Clicks
- Bounced
- Suppressed
- Unsubscribed
- Spam

###### Retrieve Contact

Grab all details about a contact.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Retrieve Contact

Grab all details about a contact.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Retrieve Contact's Back in Stock

Grab all details about a contact's back in stock.

- ID
- Email
- Phone
- Shop
- Platform
- Product ID
- Sku

###### Retrieve Contact's Custom Field

Grab all details about a contact's custom field.

- ID
- Custom Field ID
- Name
- Value
- Created At

###### Retrieve Contact's SMS Consent

Grab all details about a contact's SMS consent.

###### Retrieve Contact's Tag

Grab all details about a contact's tag.

- ID
- Name
- Audience Count
- Created At

###### Retrieve Custom Field

Grab all details about a custom field.

- ID
- Name
- Type
- Created At

###### Retrieve List

Grab all details about a list.

- ID
- Name
- Description
- Status
- Created
- Sender ID
- Flagged

###### Retrieve Segment

Grab all details about a segment.

- ID
- Name
- List ID
- Match
- Last Count
- Processed At
- Created At
- Is In Progress

###### Retrieve Sender

Grab all details about a sender.

###### Retrieve Tag

Grab all details about a tag.

- ID
- Name
- Audience Count
- Created At

###### Search Contact

Search for a contact.

- ID
- Custom Fields
- Email
- First Name
- Is Active
- Integration Customer
- Last Name
- Lifetime Value
- Lists
- Phone
- Sms Consent
- Tags

###### Search Contact and Add SMS Consent

Search for a contact by email or phone to add SMS Consent.

###### Unsubscribe Contact

Unsubscribe a contact.

- Message

###### Update Custom Field

Modify a custom field.

- ID
- Name
- Type
- Created At

###### Update List

Modify a list.

- Name
- Description
- Sender ID

###### Update Sender

Modify a sender.

###### Update Tag

Modify a tag.

- ID
- Name
- Audience Count
- Created At

###### Create Record

Create a new record in a new or existing table.

###### Custom SQL Query

Run a custom SQL query to fetch a list of records.

###### Delete Record

Delete one or more records in a table.

- Where

###### Query

Run a query to fetch a specific list of records in a table.

- Sort by

###### Update or Create Record

Update existing record(s) if found, otherwise create a new record.

- Where

###### Update Record

Update existing record(s) in a table.

- Where
