Custom Guided Wizard
Button URL Structure
8min
using the below steps, you can create a custom button on the breadwinners invoice object, which will allow you to raise/create the invoice/bill/po from the object you have chosen conventions in this document in the url below, the left side of the equation is our field, and the right side of the equation (after the '=' sign) is for you to populate based on the api names in your salesforce org for instance, if you see button url \&parent account=api field name c then your formula would include \&parent account= , but the api field name c would be replaced by the api name of the field in your salesforce org ease of use tip we have made a custom guided wizard to help you create the xero records to view this, simply make a button with the text below, quick save it, add it to the originating objects invoice related list page layout, and click this button should be created on the breadwinner's invoice object (as a button, not an action or link) we recommend the name of the button to be something like “new xero invoice from the \[something object]” button url /apex/breadwinner newinvoicepage?testing=true once created, the button should be displayed on the page layout of the object in question (the one you wish to create invoices from), on the invoices related list on that object (in the page layout for that object, click the wrench on the related list, and then click buttons to change the buttons on the related list) this is also the time to remove the standard new button by unchecking it, as the standard new button won’t work on custom objects url formula the button url generator docid\ iyr01cvg7iryxwfbwec r will give you the formula you need however, you may wish to further modify the url, or just understand it further also, you can create multiple buttons per object, with different formulas to be allowed invoices to be populated in different ways from different fields when creating formulas in salesforce, you can create a formula over many lines, separated by a new line for readability button on invoices related list you can create a button on the breadwinner invoice object itself, as a list button (without multi checkboxes) after creating it, you will need to display it on the related list of the originating object’s page layout a long, descriptive name, such as “new invoice from xxxx” these buttons will be added to the page layout of the originating object, by clicking the wrench/spanner on the invoices related list button or link on originating object you can also create the button, or link, on the originating object this can be added directly to the detail page layout of the originating object however, this can cause slight usability issues, which is why we recommend the button go on the invoices related list url structure the url will always start with a specific line, and contain at minimum two elements, specifying the originating record ( originating record ), and the associated salesforce account ( parent account ) these three lines are required for every invoice created using the custom guided wizard module button url /apex/bread winner newinvoicepage ?originating record={!salesforce record id} \&parent account=api field name c please note that the only field that should contain a salesforce id is the originating record field additionally, this is the only field that will contain brackets, {} all other fields will contain the api name of the field, without brackets the api name is easiest copied from the salesforce setup (or object manager) page showing all the fields on the originating object testing while building the url, we recommend using a suffix \&testing=true to look at our testing page you can temporarily build this into the url formula, or append it to the url after you click on the new invoice button this testing page will display the api names you have passed and the corresponding values breadwinner retrieved based on the api names it acts as a preview page and is visible only when testing is set to true ( testing=true ) button url /apex/bread winner newinvoicepage ?originating record={!salesforce record id} \&parent account=api field name c \&testing=true