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

Question

Question

Email business process form

asked on March 3, 2016 Show version history

I have a form that sends to a business process workflow.  Once in the workflow I Retrieve Forms Content and update many different tables and fields within a database.  I was wondering what I would use to in the workflow at the end to email a copy of the original form. 

At the moment the only way I can figure out how to do it is to save the form to the repository then send to a workflow.  At the bottom of the workflow do a "Find Entry" and locate where I saved it, with the name of the file.  That works fine in test mode, but I can see a possibility of duplicate files and it not returning the correct file. 

Is there a way to get the ID of the original form within workflow to email that PDF?  I have tried Create Entry, within workflow and sending that output but it only sends a blank PDF.  I must be missing something simple.

0 0

Answer

SELECTED ANSWER
replied on March 4, 2016

There is no FormsBPInstanceID. You have the right one: BP Instance ID. However, you need both the instance ID and the submission ID as field values in Laserfiche for the Retrieve Forms Content activity to be able to match the doc with the instance.

It's cleaner if you let Forms create the document in LF and set those 2 values as fields. Then rather than starting the workflow from Forms, start it from the document creation event. In the Advanced Properties for Retrieve Forms Content, use the instance and submission IDs you read from the document rather than the default "the instance that started this workflow".

1 0

Replies

replied on March 3, 2016 Show version history

you can assign {/dataset/_instance_id} to your saved form, and perform a search activity for that token with %(FormsBPInstanceID) within workflow.

 

and as your email to PDF, make sure you select the option within the email activity as shown below:

 

0 0
replied on March 4, 2016

I am running on Workflow 9.2.0 and I am not finding a FormsBPInstanceID.  I can find a BPInstanceID and FormID but not FormsBPInstanceID. 

0 0
SELECTED ANSWER
replied on March 4, 2016

There is no FormsBPInstanceID. You have the right one: BP Instance ID. However, you need both the instance ID and the submission ID as field values in Laserfiche for the Retrieve Forms Content activity to be able to match the doc with the instance.

It's cleaner if you let Forms create the document in LF and set those 2 values as fields. Then rather than starting the workflow from Forms, start it from the document creation event. In the Advanced Properties for Retrieve Forms Content, use the instance and submission IDs you read from the document rather than the default "the instance that started this workflow".

1 0
replied on March 4, 2016

I am still having difficulties.  I can get it to send an email with an attached PDF, but it is not the PDF the form created.

0 0
replied on March 7, 2016

Got it.  Ended up putting the Instance ID in the name of the saved PDF file to be able to find it.

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

Sign in to reply to this post.