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

Question

Question

Anybody have experience using a web request in Cloud Workflow to create a document in Laserfiche?

asked on September 3, 2020

Hello,

We're working on a project involving retrieving PDFs using a web request rule in Cloud. We initially weren't sure if we could do this at all, but after poking around with various workflow activities, I found that the "Attach Electronic Document" activity allows me to use a "result file" from the "Run Web Request Rule" activity. So, the initial plan was to see if we could create an entry and attach the electronic file from the web request to it to create our document in Laserfiche, but I'm not having any luck. I get an empty XML file created in Laserfiche rather than a PDF. Is the result file from a web request activity referring to a file storing the response body?

Is there a way to take a token storing the binary representation of a PDF file and "build" a document from it? Is that more complicated than it needs to be and there is an easier way to receive a document from a web request and use workflow to attach it to an entry in Laserfiche?

Any help is appreciated. Thanks!

0 0

Replies

replied on September 4, 2020

"Is there a way to take a token storing the binary representation of a PDF file and "build" a document from it?"

I believe this is what the "Result File" is supposed to be: a binary representation of the file. At least that's how it works in the on-prem version, where you can then use "attach electronic document" on an empty LF doc and build the document.

1 0
replied on September 4, 2020

Hi Ege,

That's good to know - hopefully I'm just doing something wrong in configuring the web request rule since I get an XML file in Laserfiche instead of the PDF. 
 

Thanks!

8.3.0
0 0
replied on September 4, 2020

Hi Jacob,

That file you are seeing is the response xml file from the web service, its not meant to represent a PDF file embedded in the xml. We have plans for better support for scenarios like this where you need to extract a binary file, but currently this is not natively supported. We do have support for parsing JSON, but not XML at this time.

In this case I would suggest looking at using a remote script to grab the embedded file from the xml and push it to the repository.

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

Sign in to reply to this post.