# Xero

### Connect Xero with MESA <a href="#connect" id="connect"></a>

When you're setting up your first workflow with Xero, you will need to connect Xero with MESA. Click on the **Connect with Xero** button.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FQQlgm10x3fxpQ5qGsHmB%2FEF-Xero-connect.png%20-%20Step%202.png?alt=media&#x26;token=386e85a8-9096-4954-9a1e-0c305b33c942" alt=""><figcaption></figcaption></figure>

You will brought to a screen with MESA asking for permissions. Click on **Allow access**.

Afterwards, you will be brought back to your current workflow and you are all set! MESA is now connected with your Xero account.

***

{% hint style="info" %}
If you are seeing a *Could not identify your Xero account* error when your workflow runs, you will want to make sure that you only have one Xero connection per Xero account in MESA at a time. This indicates that you might have more than one Xero connection.
{% endhint %}

1\. To resolve this, login into your Xero account: <https://login.xero.com/>

2\. From the top right hand corner, click on the 9 dotted icon and **Manage app connections**.

3\. Locate the connected app MESA and click to **Disconnect** it and confirm to **Disconnect** it again.

4\. Once MESA is no longer a connected app, you will want to [connect Xero with MESA](#connect) again.

### Technical Notes <a href="#configuring" id="configuring"></a>

### I don't see my Xero workflow activating when I update something in Xero? <a href="#trigger" id="trigger"></a>

MESA workflows that contain Xero [Triggers](https://docs.getmesa.com/workflow-builder/triggers) (such as **Contact Updated**) will run on a polling system. Meaning, on every hour or whatever the selected frequency is selected in your MESA workflow, MESA will look for any recent activity in Xero. As a result, you may not see immediate activity in your MESA workflow until the frequency hits.

In Xero triggers, you can find the polling system by selecting the **More Options** button, then the **Schedule** field.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F1mRiYyJnWQ8tnpvJW6tm%2FEF-Xero-more-options.png%20-%20Step%202.png?alt=media&#x26;token=55bef878-2b07-4180-aa89-9ef6cfd74bc9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FLAhd1aMJ9DTcGYYQ0Gl9%2FEF-Xero-more-options.png%20-%20Step%203.png?alt=media&#x26;token=b6db9d26-05e5-4d38-ad9a-ec76699b6719" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FxNeoCaQ9Wp1RKDJlbEYW%2FEF-Xero-more-options.png%20-%20Step%204.png?alt=media&#x26;token=e7d29407-e980-469d-9873-87ea88edbb29" alt=""><figcaption></figcaption></figure>

You can keep the default frequency or adjust it. Once the frequency hits, MESA will process every single task that has accrued within the previous timeframe.
