Combining PDF Attachments with DDX, then send separately with Document of Record in AEM OSGi Workflow | Community
Skip to main content
Level 4
September 15, 2020
Solved

Combining PDF Attachments with DDX, then send separately with Document of Record in AEM OSGi Workflow

  • September 15, 2020
  • 22 replies
  • 10013 views

I have a dynamic number of pdf attachments as input from an adaptive form, and would like to merge all attached pdfs into a single pdf using DDX, then have it send separately with the Document of Record with the Send Email step. However I encountered an issue with the Send Email step with the following: 

 

Caused by: com.adobe.granite.workflow.WorkflowException: GetPropertyValue failed as value corresponding to VARIABLE:attachments for type class java.lang.Object is NULL

 

 

The DDX is as follows:

 

<DDX xmlns="http://ns.adobe.com/DDX/1.0/"> <PDF result="Attachments.pdf"> <PDF source="fileAttachment"/> </PDF> </DDX>

 

 

Input map for invoke ddx:

The "attachment" path matches the output attachment folder of the adaptive form

Output map:

The output document is saved into the "attachments" document variable

Send Email step with Document of Record and attachments document:

 

 I am unsure why the value for attachments is NULL. Any help on this is appreciated, thank you!

 

EDIT - testing workflowuser's process:

The following is the dynamic table with file attachments. The ordering is PDFs 1,2,3,4, but the resultant PDF from the process gives ordering 2,3,4,1. 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by GirishBedekar

please log a support ticket with Adobe if you are having problems with 20 or more attachments in the form

22 replies

Adobe Employee
December 4, 2020

The updated custom bundle  which allows you to assemble xfa based form is now available and can be downloaded from here

custom bundle

 

The entire article is available on experience league 

techddxAuthor
Level 4
January 4, 2021
Thank you! This is unrelated, but is it possible for secured PDFs to be merged with DDX without their passwords? The use case would be similar to Adobe Sign, where all attachments can be rendered and merged regardless if they are secured or not.
Level 8
January 4, 2021

Are you able to assemble secured pdf using Acrobat?

techddxAuthor
Level 4
January 4, 2021
No, I am unable to since it requests for a password when combining