Skip to main content
Legacy User
October 23, 2019
Solved

How can I user document generation form fields inputs as variables in an advanced workflow that is launched after document generation?

  • October 23, 2019
  • 5 replies
  • 406 views

Hi, I'm just trying to understand how to extract some of the values of the input fields from a document generation form. I read other post that use an expression like this: "GetVariableValue("Params.Params.TemplateFieldData..." but it doesn't work.

In my case I need to create a variable in a workflow based on a numeric value that is entered into a text field on the document generation form.

PD. The search for text step is not an option because it takes 10 minutes to search the value

Best answer by Community Expert

All the fields you have in Doc Launcher and their values should be submitted into your workflow as the "incoming content". I would make sure that you are address the variable correctly "Params" vs. some other custom name you might have updated the xml variable. I would then make sure you are addressing the fields correctly based on how they are passed into workflow in the TemplateFieldDate portion of your xml variable. Using debug mode is a useful feature for looking at how Doc Launcher generates the xml and how it will appear to you workflow if you are having issues with updating variables in your workflow from the xml.

5 replies

Docusign Employee
October 24, 2019

All the fields you have in Doc Launcher and their values should be submitted into your workflow as the "incoming content". I would make sure that you are address the variable correctly "Params" vs. some other custom name you might have updated the xml variable. I would then make sure you are addressing the fields correctly based on how they are passed into workflow in the TemplateFieldDate portion of your xml variable. Using debug mode is a useful feature for looking at how Doc Launcher generates the xml and how it will appear to you workflow if you are having issues with updating variables in your workflow from the xml.

Legacy User
October 24, 2019

Thanks,​ It worked!

I also would like to get the selected template name value as a template, but I've not found any documentation in the support center about the Params variable.

Is there any guide to know the whole Params xml structure?

In the debug xml there are only field related xml tags.

Legacy User
October 25, 2019

Hi, I also was looking to get the template name before (you can search my old posts) but unfortunately, it's just not possible. There are two workarounds but neither one is ideal. The first is to infer the template based on the structure of the form (e.g. test if some field is populated). The second way is to place a hidden field into your form with the name/id for the template.

Legacy User
October 29, 2019

<%#Params.Documents.Document.Name%> will return the "Name" of the document that is created from Doc Launcher where the "name" of the document is comprised of the template name + date/time + extension.

Justin Jiang
Established Contributor
Established Contributor
April 25, 2024

You can also run an instance of workflow and get the XML.

Welcome to the DocuSign Community and University! Your feedback is immensely appreciated. If this answer resolves your issue, please feel free to give it a Like and mark it as the "Best Answer". This helps others in the community find the information they need. Visit us at http://dsucustomers.docusign.com for more resources and support.