akshaysura / Sitecron

SiteCron is a scheduling module based on Quartz Job Scheduler.
MIT License
22 stars 23 forks source link

running a PowerShell script via Sitecron yielding differences in output when compared to run in SPE #30

Open lreeder14 opened 2 years ago

lreeder14 commented 2 years ago

We have a PS script that exports data from a Web Form in Sitecore 9.1.3. The export runs to completion and outputs a CSV file regardless of what method we use to run it (SPE, Sitecore Scheduler or Sitecron). However, we have c# code in a dll that forces the columns into a specific order and it seems that Sitecron isn't able to get at that code. Any suggestions?

Can we add a reference to the dll someway?

I've attached our PS Script.

Thanks! fileExportPS.txt