Creating < New Invoice > button on any object
Go to the custom object nominated as your Invoice Master from the setup
Select the object
Go to <Buttons, Links and Actions>
Select <New Button or Link>
Give a label name <New Invoice>
Select the option <Detail page button>
In the formula section, enter the below function with parameters
/apex/RDSFX__InvoicePage?mappingid=<mappingID>&recordid={!<CustomObject.Id}
Ex: /apex/RDSFX__InvoicePage?mappingid=a0S0o00001lhu7M&recordid={!Energy_Audit__c.Id}
Ensure the characters <, >, and any space in-between the formula is removed
For the mapping id refer Xero Custom object mapping
NOTE: Ensure there are no extra spaces in-between the formula
Remember to add the <New Invoice button> on the page layout.
Related Articles
Creating a Bill (Expense) from Salesforce
You can create a Bill (Expense) directly from any object within Salesforce. To do this, follow the steps below: Step 1: Create a Xero Custom Object Mapping Go to the Xero Custom Object Mapping tab in Salesforce. Create a new mapping record. In the ...
Creating a New Invoice - from scratch
New Invoice button is displayed on the Opportunity layout, this button will enable to create an Invoice There are two options to add products to the Invoice; you could either add any product, which are not related to the opportunity line items or ...
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 ...
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 ...
Xero Custom Object Mapping – complete feature list
Note: the Custom object mapping record should be updated with the API name of the fields on the object Below are the list of functionalities that are supported in SFX Invoice Create/Update - Create Xero Invoice - every time flow triggered based on a ...