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

Discussion

Discussion

Script works successfully when ran from Rules page, but not in a workflow?

posted on December 15, 2022

In LF Cloud, I have a script rule. When clicking "Test Script" and entering the input variables, the script works perfectly.

 

When using this same script in a workflow, it fails. I am using the same exact input variables. Are the input parameters processed differently when running them through the Rules page vs workflow?

0 0
replied on December 19, 2022

Figured out the issue! It appears that for some reason workflow is injecting a leading space after one of my tokens. I verified that this space was not in the script itself, or in any of the input parameters being passed. When running the script through the Rules page, the space does not appear; therefore this leads me to believe that the space is being added only when run through the workflow. Not sure if this means that input parameters are being processed differently when ran through workflow. 

0 0
replied on December 19, 2022

Hi Michelle,

In what way is your script failing? Are you getting a warning/error or is it just not running properly?

0 0
replied on December 19, 2022

Hi Kevin,

 

There are no warnings or errors that show up in the workflow tab. The script is supposed to generate a PDF, but that PDF shows up as corrupted once imported. When testing that same script in the Rules page, it works fine. Which leads me to believe that the input parameters are being passed differently when ran through workflow. I am using the same exact input parameters in both cases.

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

Sign in to reply to this post.