Create Xero Invoices Action Reference
The Create Xero Invoices Flow action raises a Xero invoice from a Salesforce® record. It can also create the invoice’s Xero Contact in the same step.
Inputs
Section titled “Inputs”| Input | Description |
|---|---|
| SObject Record to convert to a Xero invoice | Required. The record the invoice is built from. Set the object type first, for example Opportunity. |
| Xero Tenant | Required. The Xero organisation to create the invoice in. |
| Xero Invoice Mapping | The invoice mapping that fills the invoice header and lines from the record. Always provide one, or no invoice is created. |
| Xero Contact | Either an existing Xero Contact record to raise the invoice against, or another record, such as an Account, to create as a new Xero contact first. If you leave it empty, the invoice uses the contact the invoice mapping resolves. |
| Xero Contact Mapping | Required when Xero Contact isn't a Xero Contact record. The contact mapping used to create the new contact in Xero. |
Outputs
Section titled “Outputs”| Output | Description |
|---|---|
| Success | Whether the invoice was created. |
| Error Message | The reason the request failed, if it did. |
| Validation Errors | Any validation errors Xero returned for the invoice. |
| Xero Invoice | The Xero Invoice record created. |
| Xero Contact | The Xero Contact the invoice was raised against, whether existing or newly created. |
You can use the outputs in later flow elements, for example to notify someone when Success is false.