Action: Append text to file (InvoiceRules plugin)
Do the following to configure how to write a text value, based on the static text or dynamic values specified here, into a selected file:
- When configuring what actions to apply to a rule, select Append text to file.
- Specify the path to the file you want to append under Path of the file to append.
- Specify the text to add to the value to append to the file by selecting a static text or dynamic value from the Text to write dropdown list.
- Addition text is added by clicking Add value part at the bottom of the dialog and configuring additional static text or dynamic values.
If Discard file writing errors is selected, and an error occurs (for example, the file is not accessible and can therefore not be written to), the text will not be added to the value for the action and no log information will be saved for it. If the option is not selected, and an error occurs, the text is not added to the value for the action, but the error is recorded in the invoice rules log.