Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Highlighted
Frequent Contributor
Posts: 138
Registered: ‎05-07-2014

Call a batch file or execute a command from workflow

I have a process where I check email for attachements. move attachements to file share and someone else has written an access database that processes and imports the files. I would like to call either a batch to run this or directly call the access db from a command line. Just an execatutable with an argument sames as the batch file.

 

It is too difficult to try and rewrite this access process does anyone know a way to do this. Ansy help greatly appreciated.

Moderator
Posts: 252
Registered: ‎04-22-2014

Re: Call a batch file or execute a command from workflow

Hi,

 

I have never tried this before, but you should be able to enter custom code in your K2 workflow using Visual Studio. You should be able to insert codes to execute the executable you want. Just make sure that executable is located on the K2 server, and that it works.

K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.
Moderator
Posts: 697
Registered: ‎05-13-2009

Re: Call a batch file or execute a command from workflow

Maybe try the community Powershell Service Object.

 

https://community.k2.com/t5/K2-blackpearl/PowerShell-Service-Object/ba-p/1025

 

HTH

Vernon

 

Frequent Contributor
Posts: 138
Registered: ‎05-07-2014

Re: Call a batch file or execute a command from workflow

This seems like a perfect solution but I cannot seem to download it from the market place. I get an error after agreeing. "An invalid set of parameters has been specified in the url." I am not sure whether it is just me or a problem with the site. 

 

 I went to the link to get it from K2 underground. I got it download but it says it not a valid archive.

 

I could really really use this. I am desparate as I cannot seem to schedule this last piece.

 

Any ideas?

Moderator
Posts: 697
Registered: ‎05-13-2009

Re: Call a batch file or execute a command from workflow

Nope, I get the same issue, I have raised this with the K2 Community Manager, will post back once its sorted.