Overview:
The CLM Javascript Function com.veeva.clm.launchApprovedEmail opens the Send Email page without expected Approved Documents selected by default.
Root Cause:
The com.veeva.clm.launchApprovedEmail function expects an 18-character Salesforce Id for Approved Documents that is selected by default in the Send Email page.
Solution:
The com.veeva.clm.launchApprovedEmail (email_template, email_fragments, callback) function can have email_template and email_fragments values entered as 18-character Salesforce Ids.
These values should be dynamically assigned using the com.veeva.clm.getApprovedDocument function. This pulls the value based on Vault Id and Document number to ensure the updated approved documents are selected.
Related Documentation:
Veeva CRM Documentation: CRM API Reference