diff --git a/ServiceDocumentSamples/force-app/main/default/classes/FireCreateServiceDocumentInvocableAction.cls b/ServiceDocumentSamples/force-app/main/default/classes/FireCreateServiceDocumentInvocableAction.cls index 96c7f23..9531b50 100644 --- a/ServiceDocumentSamples/force-app/main/default/classes/FireCreateServiceDocumentInvocableAction.cls +++ b/ServiceDocumentSamples/force-app/main/default/classes/FireCreateServiceDocumentInvocableAction.cls @@ -14,7 +14,7 @@ public with sharing class FireCreateServiceDocumentInvocableAction { /** * recordId: recordId to generate service document for. WO/WOLI/SA id - * templateId: Service document template to generate document for. Starts with '0M0' + * templateId: The ID of Service document template to generate document for. The ID starts with '0M0' * locale: (Optional) Locale to generate the document in. Example valid formats: 'ru', 'ru_PL' * title: (Optional) Used to name the document saved */ diff --git a/ServiceDocumentSamples/force-app/main/default/triggers/ServiceDocumentCreation.trigger b/ServiceDocumentSamples/force-app/main/default/triggers/ServiceDocumentCreation.trigger index 9ba9a95..b59a995 100644 --- a/ServiceDocumentSamples/force-app/main/default/triggers/ServiceDocumentCreation.trigger +++ b/ServiceDocumentSamples/force-app/main/default/triggers/ServiceDocumentCreation.trigger @@ -56,7 +56,8 @@ trigger ServiceDocumentCreation on DocumentRecipient (after insert) { // Work Order Templates - // can be conbined with the number of signatures, but not able to distinguish between entities + // The if-else branches can be combined by the number of signatures to reduce the number of branches, + // but, in that case, it will not be able to add debug information for each different entity if (WO_TEMPLATES_WITH_1_SIGNATURES.contains(templateId)) { System.debug('Work Order Template block'); //only when all the signatures have been collected, then fire the trigger