Script to update Request with another Group when the request is approved

Script to update Request with another Group when the request is approved

Use case:  
Assume a requester is requesting for an gadget asset and it requires approval from their managers.  This ticket needs to be moved to "Asset" group only when the ticket gets approved.

Pre-requisite

- Python should be installed in the server and configured. You can review the instructions here
- Requests module should be installed with the python

Execution Steps:
1.  Extract the ZIP file under ..\ManageEngine\Servicedesk\integration\custom_scripts - folder.
2.  Edit the configuration.json and update the URL and Technician Key.
3. Edit update_group.py and update the group name. 
3.  Configuring a Custom Trigger:  Go to Admin > Custom Trigger > give a trigger name > Execute the action - when the request is approved > execute script - py update_group.py $COMPLETE_V3_JSON_FILE 

Note:
If you are using additional field as criteria, please go to Admin >> Business Roles >> Set the criteria >> Use the Action as Execute Script. 
                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Update Requester from Request Description

                        Use case: When a request is submitted on behalf of a user via email, the request description contains the requester's full name. Script to update the ticket requester accordingly. Tested on builds: 14306,14500. Steps to follow: Go to Admin > Request ...
                      • How to change status once a request has been approved or rejected

                        Prerequisite - A python environment should be configured in the SDP-MSP Server. Instructions here.  - Under Admin>Self Service Portal>Do you wish to enable On Hold scheduler when your requests are put on hold?>Should be set to 'NO' Instructions ...
                      • Close the request upon adding a note.

                        Kindly follow the steps mentioned below: 1) Go to Admin >> Developer Space >> Custom Function >> Global Functions >> Copy & Paste the attached GF_Content.txt and save it with a name. Update the URL and technician key as per your instance. Refer to ...
                      • Python script to update request status

                        This article consists of a python script to update the request status based on a criteria set in Custom trigger. For installation and setup of PYTHON, please refer the below link, ...
                      • Change Account for requester and in requests (Not applicable for builds above 9416 due to behavior change)

                        If the intent is to move a request from one account to another, you will have to first move the requester to the correct account, and then you will be able to change the account in the requests. 1. Go to Admin - > Account details - > Requesters. Go ...