Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Extracting and Importing XML Data Using a Document Form

Avatar

Level 4
All



As the title suggests, I'm simply looking for the correct method by which to extract XML data from a Document Form and to import that data back. I am aware of the exportData and importData services available to me but have been unsuccessful in configuring them properly to get the data from the form.
7 Replies

Avatar

Level 7
Are you trying to extract to an xml variable type ?

Avatar

Level 4
Yes but I can extract it to whatever is necessary so long as I can work with the XML.

Avatar

Level 7
Try extracting it as a document variable. If you want to reuse the data through XPATH, use a SetValue to set the document to xml.



/process_data/xml = /process_data/@document



If you want import the data back to a documentform, set the document to documentform/object/@document



/process_data/documentform/object/@document = /process_data/@document



This worked for me.

Avatar

Level 4
Will this still work if my form's submission type is "PDF" or does it have to be "XDP"?

Avatar

Level 7
You can use a DocumentForm for a PDF or xfaForm for XDP. Choice is yours.

Avatar

Not applicable
you would need to use the processFormSubmission. this takes in the document, which is inside the documentForm variable,set the other properties notable pdfToXdp = true

you should get the form data in xml format

let me know if you need any help on this, I have a process some where on my laptop

girish

mergeandfuse@gmail.com

Avatar

Not applicable
Hello :



Have any default services in Workbanch that I cant design the process to invoke it? Thank you.