Generate Triggered CheckResults
In most cases, checklist results are generated when the record page is first loaded. It is however possible to create Checklist results upon a trigger.
The behaviour is determined by the Generate setting in the checklist definition. When it is set to When Triggered, checklist results can be created based on the Apex Method Generate Triggered CheckResults, apex-sfy24__GenerateTriggeredCheckResultsService that takes the recordId as an input.
Create a Checklist Instance
You can allow the end-user to create a new instance of a checklist. However, in some cases, you may prefer that this process is automated, e.g. when you want to periodically create an instance of the same checklist. The Apex Method Create Checklist Instance, apex-sfy24__CreateChecklistInstanceAction allows you to do this programmatically.
It takes as input arguments:
-
Checklist Id
-
Record Id