You can include Merge Fields in a Template for Excel to bring in content from Xero Practice Manager and from FYI. These are added to the Excel spreadsheet that will be used as the template, for example, to include the "Company Name", "Manager", etc.
Templates can only be set up and maintained by an FYI administrator, or by a user who is in a User Group that has Administer Templates enabled (refer to Managing User Groups).
As there is no way to directly add merge fields to external sources in Excel, you need to copy Merge Fields from the FYI Email Template function and paste these into the Excel file. Refer to Creating Email Templates and Signatures and Including Merge Fields in Email Templates and Signatures.
Adding the Merge Fields to the Excel File
- In FYI, create the Spreadsheet Template in the usual way. Refer to Creating Templates for Word, Spreadsheet or Presentation.
- Edit the contents of the template. This can be done using Excel via the browser or the desktop version of Excel.
- Add the Merge Fields to the Spreadsheet template as follows:
In a separate browser, open Knowledge - Templates, from the Create Template drop-down select Email.
- In the Merge Fields section of the Email Template, click to select a Merge Field you want to include in the Spreadsheet template.
The Merge Field is added to the body of the Email Template.
- Select and copy the code for the Merge Field (Ctrl+C).
Make sure you include the curly brackets.
Make sure there is a space after the opening curly brackets and before the closing curly brackets.
- In the Excel file, paste the code.
- Repeat for all the Merge Fields you want to include. You can apply formatting and include other text as required.
You can add 'today's date' to a spreadsheet using the FYI Merge Field Current Date or via an Excel template using the Excel TODAY function.
- Add the FYI Created Date Merge Field sa above.
Using the FYI CreatedDate Merge Field, adds the current 'today's date' when a document created from the template and this original creation date is retained whenever the document is opened or downloaded.
- Excel TODAY function.
Using the Excel =TODAY() function will add 'today's date' when the spreadsheet is created from the template, but it will reset the date to the current date whenever the spreadsheet is opened or downloaded.