Updates field values of Salesforce records based on the
bind commands present in the template's document content. This works with both bind for DOCX templates and bind for HTML templates.
This command needs to be run after all the
bind commands' input has been read. In a Flow template, the reading of the commands has to be done using the readInputs command. After it has been successfully evaluated,
updateRecords can be used to transfers the data into Salesforce. Typically this logic is placed in the template's custom button Flow. In a Controller template, the reading of the commands is done automatically when post-composing events, such as button clicks, are triggered. Therefore those events' handlers are where the
updateRecords command should be placed.