Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Vlocity Contract Lifecycle Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          8. Email action

          8. Email action

          This step emails the recipients.

          Vlocity Web Templates

          The EmailWebTemplate step is executed for Vlocity Web Templates. Before Vlocity executes the step, you must add recipients to the list. After you finish the configuration, when you click the Email button in the preview or Omniscript, Vlocity sends email to the listed recipients.

          Vlocity accesses the document generated in the GenerateDocumentWebTemplate step by using the token %docGenAttachmentId%. The values for docGenAttachmentId are assigned in the JSON of the Vlocity template object-document-creation-default with the Event Listener.

          window.addEventListener('message', function(event) {
           if (event.data && event.data.constructor === Object && event.data.hasOwnProperty('docGenAttachmentId')) {
            window.VlocOmniSI.applyCallResp(event.data);
           }
          }, false);

          Microsoft DOCX or PPT Templates

          The EmailWordPPT step is executed for Microsoft DOCX or PPT Templates. Before Vlocity executes the step, you must add recipients to the list.

          Vlocity accesses the document generated in the GenerateDocumentWordPPT step by using the token %docGenContentVersionId%. The value for docGenContentVersionId is assigned in the JSON of the Vlocity template object-document-creation-docx-template with the Event Listener.

          window.addEventListener('message', function(event) {
           if (event.data && event.data.constructor === Object && event.data.hasOwnProperty('docGenContentVersionId')) {
            window.VlocOmniSI.applyCallResp(event.data);
           }
           if (event.data && event.data.constructor === Object && event.data.hasOwnProperty('GET_BPTREE_RESPONSE')) {
            if (!window.bpTreeResponseSent) {
             var fContentWindow = document.getElementById('obj-doc-creation-docx-os-iframe').contentWindow;
             fContentWindow.postMessage(baseCtrl.prototype.$scope.bpTree.response, '*');
             window.bpTreeResponseSent = true;
            }
           }
          }, false);
           
          Loading
          Salesforce Help | Article