Hi All,
I am about to migrate my workflow to the gallery. This uses the event triggers to run a macro that should download files from sharepoint before the workflow starts. It works when ran on my machine but when put in the gallery, I get an error that the script file cannot be found.
Note: I have all my working files in a shared network drive. Here is the code I have for the vbscript:
Option Explicit
Dim objExcel
Dim CurrentDirectory
dim fso: set fso = CreateObject("Scripting.FileSystemObject")
CurrentDirectory = fso.GetAbsolutePathName(".")
Set objExcel = CreateObject("Excel.Application")
objExcel.Application.Run "'"&CurrentDirectory&"\MacrosForICRecon.xlsm'!Module3.getHostFolder"
objExcel.DisplayAlerts = False
objExcel.Application.Quit
Set objExcel = Nothing
WScript.Quit
And here is how I configured the event:

Appreciate any help given.
Kat