You are viewing limited content. For full access, please sign in.

Question

Question

Form Field Value Set Via Workflow Not Passing Through Value In "Save to Repository" Task

asked on November 3, 2022 Show version history

Hi all,

In my forms business process, after the initial form submission I'm calling a workflow which uses a "Set Business Process Variables" activity to set a form field value.  After the workflow call it runs a "Save to Repository" task in the form's process.  This task includes the form field value set by the workflow in Config Fields.  That value is blank in the document's corresponding template field in the repository.  However, the form's process sends an email using an Email Task AFTER the "Save to Repository".  That email does display the form field value set by the workflow.  So, why does it not get passed through as a template field in Save to Repository?  So, I ran a query against the forms database and discovered that the initial form submission and the workflow call have different SubmissionIDs.  And, the form field value shows as set for the workflow SubmissionID, but blank for the initial submission's SubmissionID.  Okay, what in the world is going on here.?  I thought form field variable names were global to the form process!

0 0

Answer

SELECTED ANSWER
replied on November 3, 2022 Show version history

When you use a Save to Repository task, it depends on what settings you use.

The variables are global, however, Forms tracks the data at each "step" in the process so you can see what was actually submitted versus the "current" values.

For example, if you select "Save the submitted form from this process step"

Then you'll only have the values that were submitted with that form, not anything that was added/changed later via workflows or other tasks.

Try selecting "Save a form with the current process data" instead.

This setting uses the designated form and the current variable data, which should include the data added/updated by the workflow step.

1 0
replied on November 3, 2022

Wow!  That was it, I was referencing the original form submission.  Thanks so much!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.