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

Question

Question

SDK script runs with the script editor, but fails when running the workflow

asked on November 30, 2017 Show version history

I'm working on a script that opens a word document, saves it as a pdf, then closes the word document.  It works running in the script editor, but if I run the workflow, it does not close Word.

0 0

Answer

SELECTED ANSWER
replied on November 30, 2017

Scripts run on the Workflow server under the service's context (so without a user session). As such, they cannot launch Word.

0 0

Replies

replied on December 4, 2017

To add to this, Microsoft does not support or recommend server-side automation of Office products. See: https://support.microsoft.com/en-us/help/257757/considerations-for-server-side-automation-of-office 

There are commercial (and potentially some open-source) .NET libraries that you can use to perform a programmatic Word to PDF conversion.

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

Sign in to reply to this post.