Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Execute an EXE file using SP Designer Workflow on Approve Button Click

$
0
0
  

I have a requirement wherein the end user fills up SharePoint UI and submits the form and it will trigger a SP Designer 2010 workflow and assign a task to approvers.

Now, once the the approvers' form is populated, they are able to see the form and they click on a approve button, here I need to execute an EXE that's stored on the D:\ drive [say file system]. How to execute this EXE from a SP Designer 2010 WF?

And if the approver clicks on the Reject button , the EXE must NOT be executed. I have checked the Actions in SP D, but there is no action called execute an Exe. So am stuck with, how to achieve this functionality.

One alternative approach i have thougt about is, once the approval status is set to "Approved", I can add an item into a separate SPList and once this item added event is fired, I can write a ItemAddedEventReceiver method in which, I use System.Process namespace and invoke the EXE. but this seems to be a complex logic.

Would like to know any other easy approaches/solutions.

ps: i have a  single server env on my dev [ sp 2010 ECAL + sql server 2008 r2 ]

and in my UAT and PROD , its a multi-server farm env, having 3 server boxes. 1 wfe, 1 sql db & 1 app srvr. 



Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>