Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How can I write a document to a shared folder ?

Avatar

Former Community Member

Hi, newbie developer in workbench here...I'm using Output service to generate PDF.

_ The foundation service "write" seems to be useful just to write document in the livecycle server; how can I reach shared folder on another pc ?

_ Does somebody has examples that teach how specify destination URI of Output ? I wanna write to : nfsmount/myfolder

Thanks in advance !

3 Replies

Avatar

Level 10

You should be able to use \\shared_folder\foldername

Jasmin

Avatar

Level 1

Did you ever get this working?  How is your security set up for

your process.  Are you using run as Invoker or a named user?  Please help?

Avatar

Former Community Member

We used the WRITE FileUtilsService with this input :

Pathname Pattern (template)

{$/process_data/@remotePath$}{$/process_data/@pdfName$}.pdf

Document (variable)

Pdfdocument (a document object containing the pdf to write)

with this setup you can write to a shared folder in the server running

workbench, you can't reach external resources so no problem relative to security

and user.

then we use a java class running on the server to move the pdf from the local

folder to the final location.