Skip to content

Add the Send to Xero Field

The flow runs when the Send to Xero checkbox on the record is ticked, either by a user or by your business process. Create the field, then add it to the record page so you can tick it directly while testing.

Navigate to Setup > Object Manager > Opportunity > Fields & Relationships and click New.

The Opportunity Fields & Relationships list in Object Manager with the New button highlighted

Select Checkbox as the data type and click Next.

Step 1 of the New Custom Field wizard with the Checkbox data type selected and highlighted

Enter the field details and click Next:

  • Field Label — Send to Xero. The Field Name fills in as Send_to_Xero.
  • Default Value — leave as Unchecked.
  • Description — optional, for example When ticked, a record-triggered flow creates a Xero invoice for this Opportunity.

Step 2 of the wizard with the Field Label Send to Xero highlighted, Default Value Unchecked and a description entered

On Establish field-level security, make the field visible to the profiles that should be able to send records to Xero, then click Next.

On Add to Dynamic Forms-enabled record pages, clear the Opportunity Record Page. You’ll place the field yourself in the next section. If you leave it selected, the field is added to the end of the page’s first field section instead. Click Next.

Step 4 of the wizard with the Opportunity Record Page checkbox cleared and outlined

On Add to page layouts, leave the layouts selected and click Save.

Open any Opportunity, click the gear icon and select Edit Page.

The Setup menu on a record page with Edit Page highlighted

In Lightning App Builder, click the Details tab on the canvas to show its field sections. Then open the Fields tab in the left panel and search for Send.

Lightning App Builder with the Fields tab open, Send entered in the search box and the Send to Xero field highlighted

Drag Send to Xero into a field section. Alternatively, click a field on the canvas, click the + insertion point that appears above or below it, and then click Send to Xero in the Fields panel. It’s added at the insertion point.

An insertion point selected below the Lead Source field, with the + outlined

Click Save. If this is the first time you’ve customised the page, click Activation to assign it to your org, app or profiles.

Send to Xero added below Lead Source in the Opportunity Information section, with the field and the Save button outlined

Next, set up the flow.