Custom Scripts - How to automatically share a request using custom triggers

Custom Scripts - How to automatically share a request using custom triggers

Hello users,

This post will to help you share a request automatically using custom triggers.The feature to share request helps technicians and requesters to access a request that is beyond their scope of viewing and editing.  You can find more information about this feature here .

This is done using an API call to share a request in ServiceDesk Plus.Refer to the comments within the script for more information on the json structure in which data has to be send in the API call for sharing a request.The script to do this is available here.


Execution steps:

 

1. Download and copy the script file into the \Manageengine\ServiceDesk\integration directory.


2. Update the protocol , servername and portnumber used to access ServiceDesk and the technician api key in the script file.


3. Configure the script under the  Admin  ->  Custom Triggers . Provide the path of the request json file as the input to the script.


Below is a screenshot showing a sample configuration.



Note:

1. This script requires that Python be installed on the Server that is running ServiceDesk Plus.It was tested on python v3.5.1 - 32 Bit.

2. You can use this script in any version of ServiceDesk Plus above 9306.

3. A  Python Library called 'Requests' which is not bundled by default with Python installation. More information on this Package and the instructions on installing it on the Application Server are available here.

To make the best use of this, take a look at the comments in the script and the related post in our resources section.Trust you find this post useful.
                New to ADManager Plus?

                  New to ADSelfService Plus?