Examples of a working Merge PDFs activity in Workflow?
I want to merge the pdf outputs from reports dynamically generated. I have tried getting the byte array from a url of the report url by using send web request and passing that into the server workflow to run the merge pdfs activity but I keep getting errors. Not sure what I am missing?
-
If you use a webrequest activity, check if you have set the Expect parameter to blob. If not, the $webRequest.blob property will not be set.
The Merge PDFs activity takes an array of byte[] (which is basically what the blob is), so you could for instance set it to:
=[ $webRequest1.blob, $webRequest2.blob ]
0 -
@Berend Veldkamp? Thanks for the response, Berend. I have tried using the expect blob output and I still get failed workflows. Testing in the sandbox and the log files are not supper helpful.
Here is a link to my test workflow very slimmed down.
https://lib-gis1.library.oregonstate.edu/arcgis/home/item.html?id=20760651252441a99b34b28f00bcc3ed
Any thoughts?
0 -
Ah, I think I got it working now. I was setting the workflow output to the mergedpdf result and that was throwing errors. When I created a download from the mergedpdf and set that as the workflow output, it worked.
0 -
I do not an Esri account to see the test workflow. If you don't mind exporting the workflow and attaching it here. It would help me. Thank you.
0 -
Hi, @Oh, Jenny?
I have attached the workflow, I assume it might still work...
-- Marc
0 -
Thank you. Since Geocortex report includes only images , I am trying to get attachments from the Mapserver and merge it with the report. I called Send Web Request ( with attachment url) to return a blob , and then write File Bytes with the blob as input and merge with Geocortex report but somehow it is not working.
0
Please sign in to leave a comment.
Comments
6 comments