This is a new requirement that has come up. We have to invoke a script (Powershell script, Perl, PHP etc) residing in server side from UI (Service Catalog 12.8.04).
For now using the script we plan to send email and possibly return some info / html back, the content and related info (to, cc, bcc etc) are sent from UI (we do not want to use "mailto" link and open email client since length of the content of email is limited.
Is there a way I can do this ? I feel this (invoking of server side script) will have already achieved by any/some of you and wanted to take as much inputs as possible.
Lindsay has the heart of the matter, there. Once you've got an event and rule sorted out, you could create an action with type "Command line", assuming that actions of "Email" or "Request email" type aren't already doing what you're after without recourse to manually calling them from the command line on the server.
What will be the event (the trigger) for when you want to run the script?
We wanted click of a button to be the trigger.
- Particularly concerning to sending email , the user will have choice of either printing the form (which we have already done it) or send email on click of a button (we are writing HTML with css class into "Label" to create button.
When you look at a Catalog Request there is an Email button. Will this not satisfy your requirements?
The "Email" option that we have in Catalog request is for the whole request. Some of our services/requests have many service options bundled together.
We wanted to enable user to send information of which ever service option he/she wants and the content should be pre-populate with all the information (like values entered in each input field in that form) of that particular service option.