Powershell variables

Hi, I am parsing invoices and would like to print the pdf.

I am using the powershell command below but keep receiving this error.

Invoke Power Shell: Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

"Start-Process -FilePath $fname -Verb Print"

I have powershell variable setup and an assign before it

strfullpath = strDocPath +"\" + FileName

fname - in - string - strfullpath

Any help would be appreciated.

@benmyers - please do not post the same question on separate topics. It will not speed up the answer.


Hi @benmyers,

Have you followed this tutorial? It shows you exactly how you can pass parameters to the Invoke Powershell activity.

@jeevith thanks for your reply, not sure why it wasn’t working just deleted everything and started again and now its working. Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.