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

Question

Posted to Laserfiche Lounge

Workflow to fill a PDF form using variables from Laserfiche Forms then storing the filled PDF form into Repository

asked on May 1, 2024

Hello,

I am having trouble making this work for me.

I am trying to get it to create the PDF first but I can only get a blank PDF that doesn't have my variables in it from the Form or the Form itself.

Any help would be greatly appreciated!

Thank you!

0 0

Replies

replied on May 1, 2024 Show version history

I don't see anything involving Laserfiche Forms in your workflow. Did you intend to grab field values from your Forms process to use to fill a separate PDF? If so, you'd need to:

  1. Call the "Retrieve Business Process Variables" activity in this workflow before you attempt to use your Laserfiche Forms field values in anything
  2. Call this workflow from the Forms process or store the Forms process ID in the saved form metadata so that you can retrieve those values later.
0 0
replied on May 1, 2024

I think I have all of that already.  I am able to get the data from the form, but it is just not going into the Fillable PDF.  

I just tried it by using the Retrieve Business Process Variables and it didn't create the file.

Thank you, I am sure there is something I am missing.

0 0
replied on May 1, 2024

Seems like you have the wrong order of things here.

  1. Retrieve Business Process Variables
  2. Create Entry
  3. Fill Out PDF Form (where the PDF is the Output Entry of Create Entry)
  4. Attach Electronic Document (where the Electronic Document is the Output Entry of Create Entry)

 

I think that you reversed steps 3 and 4, so the filled-out PDF never got attached. You must attach the electronic document after the PDF has already been filled out. Otherwise, you're just attaching the master PDF.

2 0
replied on May 2, 2024

Kevin,

I got it to work.  I was looking in the wrong area.  I checked the permissions for the fields for the Forms Access Group and they were not set.  I set them to Read, Create and it worked.

This is the breakdown for each step in the Workflow.

Retrieve Field Values from the Template I used in the form.  Selected the fields that I wanted to put in the Fillable PDF.

Create Entry - named it Fillable PDF and set the Destination for where I want it to go.  (I know there is probably some double work in here, but I will play with it to polish it.)

Attach Electronic Document I selected the PDF that I created that has the fillable fields on it.  I made sure to select Other Entry and Create Entry.

For the Fill Out PDF Form, I just selected the PDF again and matched the fields with the variables coming from the LF Form.

Routed the Entry to a desired Folder.

I threw in a Rename Entry so I can get the name right.  I can probably do this at the Create Entry and it would work.

Last, I used a Move Entry to move it where I want it.  Again, I can probably do this at the Create Entry but I will see what happens.

Thanks!

3 0
replied on May 2, 2024

That's great news! I didn't even think to check the field permissions. That has gotten me before as well. Glad you figured it out.

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

Sign in to reply to this post.