Update status using Python script in 11.0

Update status using Python script in 11.0

Using a Python script via custom trigger, we can update the status invoking an API call.

A short guide on setting up python is available here :

https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server

Find the attached update_req_status.py and configuration.json file

1. Move both the files to <SCP Home>/integration/custom_Scripts folder.

2. Edit the update_req_status.py and set the status that needs to be set when the trigger is executed.



3. Edit the configuration.json file and provide the necessary details including the API Key.

4. Create a Custom Trigger depending on your requirement like below:


5. Based on the criteria, the trigger invokes the script and the status is set.




Note: This works only for 11.0 as use V3 API.

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to update Request Additional fields during request create/update using Custom Triggers (V3)

                      This is a sample python script to update the Request Additional Field Values during request create/update based on certain criteria using Custom Trigger Execution Steps:  1. Download the attached zip 2. Move the files to ...
                    • How to update a request based on certain values.

                      This post describes the use of a python script to update requests based on values given in the request_properties.json file. This action can be performed using Custom Triggers. UseCase:  We have a Service template for account lockout/password reset. ...
                    • Script to Auto close Request when the status is set to Resolved

                      This post describes the use of a python script to close requests that are set in Resolved status using Custom Schedules What is 'Custom Schedules' ? The Custom Schedules feature enables you to access any data in ServiceDesk Plus to perform customized ...
                    • How to automatically close requests that are in a specific status.

                      This post describes the use of a python script to close requests that are put in a specific status using Custom Schedules.This showcases the use of a feature called 'Custom Schedules' that was released in the build 9300 of ServiceDesk Plus. What is ...
                    • How to debug a python/deluge script

                      Common Debugging steps: 1. Confirm if all the API used are in proper format: In latest v3 APIs, "format": "json" is removed from parameters Notes addition API is modified from: "request_notes" to "notes" in recent builds 2. Check if the udf_fields ...