Send Xero invoices to Teams by contact

Accounting

What it does

When someone runs the list_invoices command in Teams with a contact name, this automation searches Xero for matching invoices. It posts the first five results in the conversation so the team reviews them without opening Xero.

Who it's for

Accounting teams who need to find Xero invoices from Teams without switching applications.

How teams use this

Find invoices by customer name

Run the list_invoices command with a contact name and get the first five matching invoices posted to the Teams channel. The team can review invoice details without opening Xero.

Let sales check customer invoices

Invite the bot to a sales channel so the team can search Xero invoices during customer conversations. The same command and flow work in any Teams channel.

Filter results by invoice status

Add a status parameter to the command so someone can search only draft, submitted, or approved invoices. The automation checks the status condition before posting results.

How it works

  1. Run the list invoices command. Type the list_invoices command in Teams and provide the contact name so the automation knows which invoices to search for.
  2. Search Xero for invoices. Search Xero for all invoices matching that contact name so the results can be filtered and displayed to the team.
  3. Post the first five results. Reply in Teams with invoice details for up to five matches so the channel sees the outcome without leaving the conversation.