Commit Graph

14 Commits

Author SHA1 Message Date
Paul Huliganga 06e2a14de5 feat: update email intro text; allow up to 5 copies of Authorization to Release form; update flows and docs 2026-03-24 10:58:37 -04:00
Paul Huliganga 82befe6fbd fix(flow): rename InputField to smsPhoneInput to avoid duplicate dev name with variable 2026-03-13 23:21:23 -04:00
Paul Huliganga e6ea5b8554 fix(flow): use same-name InputField for auto-binding to recipientSmsPhone variable 2026-03-13 23:17:32 -04:00
Paul Huliganga a7474e45c8 fix(flow): correct InputField screen component and assignment reference
- Remove storeOutputAutomatically from InputField (not supported on that fieldType)
- Fix assignment reference to use screen-qualified path
  SMS_Phone_Screen.recipientSmsPhone_Input instead of bare recipientSmsPhone_Input
2026-03-13 23:09:34 -04:00
Paul Huliganga 91ff48d6e0 fix(flow): resolve duplicate developer name on SMS phone screen field
Screen InputField name cannot match a flow variable name. Renamed field to
recipientSmsPhone_Input, added Store_SMS_Phone assignment element to copy
the field value into the recipientSmsPhone variable after the screen.
2026-03-13 11:43:43 -04:00
Paul Huliganga a9768ef553 fix(flow): replace unsupported outputParameters with storeOutputAutomatically on SMS phone input field
InputField screen components do not support <outputParameters>. Replaced with
<storeOutputAutomatically>true</storeOutputAutomatically> and renamed the field
to match the target variable (recipientSmsPhone) so the value is stored directly.
2026-03-13 11:41:15 -04:00
Paul Huliganga faf53d0777 fix(flow): move recipientSmsPhone variable into contiguous variables group in V4
Variable was appended after <choices> at end of file, creating a second
<variables> block and causing 'Element variables is duplicated' deploy error.
Moved into the existing variables group before <choices>.
2026-03-13 11:37:14 -04:00
Paul Huliganga 29442efdc2 fix(flow): consolidate all recordLookups and screens into single groups in V4
Get_Recipient_Contact was in a separate <recordLookups> block before <environments>
and SMS_Phone_Screen was in a separate <screens> block before <environments>,
both causing 'Element ... is duplicated' deploy errors. Moved both into their
respective contiguous element groups alongside the existing V3 elements.
2026-03-13 11:34:07 -04:00
Paul Huliganga eee5289de9 fix(flow): move Is_Recipient_Email_Blank into contiguous decisions group in V4
Salesforce Flow XML requires all elements of the same type to be grouped
together. Is_Recipient_Email_Blank was in a separate <decisions> block after
<recordLookups>, causing 'Element decisions is duplicated' deploy error.
Moved it into the existing decisions group and removed the orphaned block.
2026-03-13 11:29:13 -04:00
Paul Huliganga e41e43cabd feat(sms): SMS delivery via dfsle withSmsDelivery() for recipients without email
- Add recipientSmsPhone InvocableVariable to DocusignEnvelopeRequest
- Add SMS_PLACEHOLDER_EMAIL constant to DocusignCompositeEnvelopeBuilder
- Update resolveRecipients() and buildRecipient() to accept smsPhone param
- Chain .withSmsDelivery(smsPhone) on recipient when smsPhone is provided
- Substitute placeholder email when recipient has no email and SMS phone given
- Add Flow V4 with Get_Recipient_Contact lookup, Is_Recipient_Email_Blank
  decision, and SMS_Phone_Screen to collect phone for no-email recipients
- V3 left untouched for existing Salesforce deployments
2026-03-13 09:57:28 -04:00
Paul Huliganga 81c08f3fe1 feat(flow): add multi-copy dialog for Authorization to Release Information
When the 'Authorization to Release Information' template (English or
Spanish) is selected, a new screen prompts the user to choose how many
copies (1, 2, or 3) to include in the envelope via radio buttons.

New flow elements:
- Scan_For_Auth_Release_Template loop: iterates selected rows to detect
  the target template
- Does_Row_Contain_Auth_Release decision: Contains check on row Name
- Flag_Auth_Release_Selected assignment: sets authReleaseTemplateSelected
- Is_Auth_Release_Selected decision: routes to copies screen or skips
- Authorization_Copies_Screen: displays radio buttons (1/2/3 copies)
- Store_Auth_Release_Copies assignment: writes radio selection into the
  authReleaseFormCopies flow variable
- authReleaseFormCopies variable (Number, default 1)
- authReleaseTemplateSelected variable (Boolean, default false)
- AuthCopies_1/2/3 choices

authReleaseFormCopies is passed to the Apex action as a new input param.
Template name string lives in a single Contains condition for easy update.
2026-03-11 16:23:32 -04:00
Paul Huliganga 30fc345bb0 Sort templates alphabetically by Short_Name__c in email subject and document order
- Updated DocusignCompositeEnvelopeBuilder.cls to sort documents and subject by Short_Name__c
- Modified Docusign_Envelope_Templates_V3.flow-meta.xml: repositioned elements and added filter for Short_Name__c not null
2026-03-03 23:12:06 -05:00
Paul Huliganga ace2518349 fix: reorder V3 Flow XML elements - group same types together
Salesforce requires elements of the same type (recordLookups, decisions,
screens, etc.) to be grouped together. Reordered all elements alphabetically
by type to comply with Flow metadata schema.
2026-02-25 11:06:40 -05:00
Paul Huliganga 19852fd4bb fix: move flow XML files to correct force-app/main/default/flows/ directory 2026-02-25 11:03:10 -05:00