Automation with flows

Automation with flows

Invoice Automation

You can automate Invoice creation using Salesforce flows.

Use Case

To automate Invoice creation when an Opportunity Stage = Closed Won.

You can choose your conditions in the flow on a standard object or a custom object.

How to create a flow to automate invoice creation?
Go to Setup -> Flows -> Create a new flow

Select the "Record-Triggered Flow" and click on [ Create ] button


Select the object, in our case it is opportunity object. You can choose a custom object or standard object.

Choose the option "A record is created or updated" under Configure Trigger



      Set Entry Conditions, in our case Opportunity.StageName = Closed Won


      Following this click on Add Element on the flow builder followed by selecting the < Action >                         option


      In the next screen search for the Action < Custom Invoice > 
      Label the action



Note: We have enabled many functions to be used in the flow to suit your business needs. All our actions are prefixed by RDSFX

Next enter parameterIds, use the below provided parameter, replace mapping Id with the id that was generated after creating the < Xero Custom Object Mapping > record

  recordid={!$Record.Id}&mappingid=<Mapping Id>



Debug and Activate the flow. Test the flow.



    • Related Articles

    • Tracking category automation with SFX

      SFX supports tracking categories To automatically populate the right data into the tracking category based on opportunity, you can use a formula field to automate the tracking field on the opportunity object. This field can then pull the data needed ...
    • From where are the most important data for the invoice pulled from – opportunities & products, pricing?

      SFX can be configured for any standard or custom objects and fields for retrieving invoice data. A manual invoice creation can be initiated or automated via the flows
    • How to identify the Xero External Id on a Customer record

      You can identify the Xero external id related to the different Xero orgs under the Account's related list Both Xero external id and Xero org id is listed here Note: Use this information to pass to the Xero Custom Object mapping record for Invoice ...
    • Multi-currency

      SFX Advanced/Enterprise version enables Multi Currency from Xero. You can create invoice using predefined currencies from Xero Invoices are created based on the Currency selected and the same is updated in Xero. Currency field can be updated in ...
    • Xero Custom Object Mapping

      Xero Custom Object Mapping is an important feature of SFX. We say this is where all the magic happens. You can find the tab < Xero Custom Object Mapping > Click on [ New ] button to create you first record The layout is divided into multiple ...