diff --git a/composite-envelope-builder/force-app/main/default/flows/Docusign_Envelope_Templates_V3.flow-meta.xml b/composite-envelope-builder/force-app/main/default/flows/Docusign_Envelope_Templates_V3.flow-meta.xml index ab6ed18..f7c980b 100644 --- a/composite-envelope-builder/force-app/main/default/flows/Docusign_Envelope_Templates_V3.flow-meta.xml +++ b/composite-envelope-builder/force-app/main/default/flows/Docusign_Envelope_Templates_V3.flow-meta.xml @@ -1,96 +1,117 @@ - 60.0 - false - Default - Docusign Envelope Templates V3 {!$Flow.CurrentDateTime} - - Flow - Draft - - - - - - recordId - String - false - true - false - - - - - compositeTemplateIds - String - true - false - false - - - - - envelopeId - String - false - false - false - - - - envelopeSuccess - Boolean - false - false - false - - - - envelopeErrorMessage - String - false - false - false - - - - - - 254 - 0 + + Send_Composite_Envelope + + 50 + 1000 + DocusignCompositeEnvelopeBuilder + apex - Get_Records + Check_Envelope_Result - - - - - - Get_Records - - 380 - 134 - false - - Is_Language_Selected - - and - - Id - EqualTo + Automatic + + templateIds + + compositeTemplateIds + + + + recordId recordId - - true - Client_Case__c - Id - Docusign_Envelope_Language__c - true - - - - + + + language + + Get_Records.Docusign_Envelope_Language__c + + + DocusignCompositeEnvelopeBuilder + 0 + + envelopeId + envelopeId + + + envelopeSuccess + success + + + envelopeErrorMessage + errorMessage + + + 60.0 + false + + Add_Template_ID + + 50 + 890 + + compositeTemplateIds + Add + + Build_Template_ID_Collection.dfsle__DocuSignId__c + + + + Build_Template_ID_Collection + + + + Check_Envelope_Result + + 50 + 1108 + + Error_Screen + + Default Outcome + + Envelope_Sent_Successfully + and + + envelopeSuccess + EqualTo + + true + + + + Success_Screen + + + + + + Check_Row_Selection + + 182 + 674 + + Row_not_selected + + Default Outcome + + Is_Row_Selected + and + + data.firstSelectedRow.Id + IsNull + + false + + + + Build_Template_ID_Collection + + + + Is_Language_Selected @@ -116,64 +137,42 @@ - - - Language_Not_Added_Screen - - 578 - 350 - false - true - false - - LanguageNotSelected - <p>The <strong>DocuSign Envelope Language</strong> is not populated on the record. Please add the language first and then proceed.</p> - DisplayText - - - top - - - 12 - - - - true - true - - - - Language_Warning_Screen - - 182 - 350 - false - true - false - - DocuSign_Envelope_Templates - - - LangWarningText - <p>The current selected language is <strong>{!Get_Records.Docusign_Envelope_Language__c}. </strong>On the next screen you will be able to see form names of {!Get_Records.Docusign_Envelope_Language__c} language only. If you want to switch the language, please go back to record and select another language form <strong>DocuSign Envelope Language</strong>.</p> - DisplayText - - - top - - - 12 - - - - Next - true - true - - - - - + Default + Docusign Envelope Templates V3 {!$Flow.CurrentDateTime} + + + Build_Template_ID_Collection + + 50 + 782 + data.selectedRows + Asc + + Add_Template_ID + + + Send_Composite_Envelope + + + + BuilderType + + LightningFlowBuilder + + + + CanvasMode + + AUTO_LAYOUT_CANVAS + + + + OriginBuilderType + + LightningFlowBuilder + + + Flow DocuSign_Envelope_Templates @@ -200,9 +199,29 @@ Asc true - - - + + Get_Records + + 380 + 134 + false + + Is_Language_Selected + + and + + Id + EqualTo + + recordId + + + true + Client_Case__c + Id + Docusign_Envelope_Language__c + true + Envelope_template_records @@ -269,200 +288,6 @@ true true - - - - - Check_Row_Selection - - 182 - 674 - - Row_not_selected - - Default Outcome - - Is_Row_Selected - and - - data.firstSelectedRow.Id - IsNull - - false - - - - Build_Template_ID_Collection - - - - - - - Row_not_selected - - 314 - 782 - true - true - false - Back - - ErrorMessage - <p><strong style="background-color: rgb(255, 255, 255); color: rgb(68, 68, 68);"><em>You have not selected any of the forms. Please go back and select the form first and then proceed.</em></strong></p> - DisplayText - - - top - - - 12 - - - - true - false - - - - - - - Build_Template_ID_Collection - - 50 - 782 - data.selectedRows - Asc - - Add_Template_ID - - - Send_Composite_Envelope - - - - - - Add_Template_ID - - 50 - 890 - - compositeTemplateIds - Add - - Build_Template_ID_Collection.dfsle__DocuSignId__c - - - - Build_Template_ID_Collection - - - - - - - - Send_Composite_Envelope - - 50 - 1000 - DocusignCompositeEnvelopeBuilder - apex - - Check_Envelope_Result - - Automatic - - templateIds - - compositeTemplateIds - - - - recordId - - recordId - - - - language - - Get_Records.Docusign_Envelope_Language__c - - - DocusignCompositeEnvelopeBuilder - 0 - - envelopeId - envelopeId - - - envelopeSuccess - success - - - envelopeErrorMessage - errorMessage - - - - - - - Check_Envelope_Result - - 50 - 1108 - - Error_Screen - - Default Outcome - - Envelope_Sent_Successfully - and - - envelopeSuccess - EqualTo - - true - - - - Success_Screen - - - - - - - - - Success_Screen - - 50 - 1216 - false - true - false - - SuccessMessage - <p><span style="font-size: 16px; color: rgb(0, 128, 0);">✅ Composite envelope sent successfully!</span></p><p><br></p><p><strong>Envelope ID:</strong> {!envelopeId}</p><p><strong>Templates combined:</strong> All selected templates were merged into a single envelope.</p> - DisplayText - - - top - - - 12 - - - - true - false - - Error_Screen @@ -488,25 +313,148 @@ true false - - - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - + + Language_Not_Added_Screen + + 578 + 350 + false + true + false + + LanguageNotSelected + <p>The <strong>DocuSign Envelope Language</strong> is not populated on the record. Please add the language first and then proceed.</p> + DisplayText + + + top + + + 12 + + + + true + true + + + Language_Warning_Screen + + 182 + 350 + false + true + false + + DocuSign_Envelope_Templates + + + LangWarningText + <p>The current selected language is <strong>{!Get_Records.Docusign_Envelope_Language__c}. </strong>On the next screen you will be able to see form names of {!Get_Records.Docusign_Envelope_Language__c} language only. If you want to switch the language, please go back to record and select another language form <strong>DocuSign Envelope Language</strong>.</p> + DisplayText + + + top + + + 12 + + + + Next + true + true + + + Row_not_selected + + 314 + 782 + true + true + false + Back + + ErrorMessage + <p><strong style="background-color: rgb(255, 255, 255); color: rgb(68, 68, 68);"><em>You have not selected any of the forms. Please go back and select the form first and then proceed.</em></strong></p> + DisplayText + + + top + + + 12 + + + + true + false + + + Success_Screen + + 50 + 1216 + false + true + false + + SuccessMessage + <p><span style="font-size: 16px; color: rgb(0, 128, 0);">✅ Composite envelope sent successfully!</span></p><p><br></p><p><strong>Envelope ID:</strong> {!envelopeId}</p><p><strong>Templates combined:</strong> All selected templates were merged into a single envelope.</p> + DisplayText + + + top + + + 12 + + + + true + false + + + 254 + 0 + + Get_Records + + + Draft + + compositeTemplateIds + String + true + false + false + + + envelopeErrorMessage + String + false + false + false + + + envelopeId + String + false + false + false + + + envelopeSuccess + Boolean + false + false + false + + + recordId + String + false + true + false +