Software deployment in UEM when Service Request is approved

Software deployment in UEM when Service Request is approved

Use case: 

To initiate the software request from Service Catalog, approve the request and initiate the software deployment using the EC agent.

 

Prerequisites:

1. To include required packages within a specific template, follow these steps: Begin by accessing the Admin section, then proceed to Resource Questions. Create a new question in this section. Afterward, navigate to the desired template and establish new Resource Sections. Finally, set up the previously created Resource Question within the template configuration.




We've seamlessly integrated two packages into our setup, and these very packages should be selected when initiating a service request.


 

2. The required assets needs to associated under Assets field which have to be deploy in UEM.



 


 

Execution Steps:

1. Download attached .zip file.

2. Extract the downloaded files to the path  Build_Home\AdventNet\ME\ServiceDesk\integration\custom_scripts

3. Update Setup credentials in configuration.json file.

4. Create new .txt file under the path Build_Home\AdventNet\ME\ServiceDesk\integration\custom_scripts\executor_files 

Populate the file with the following content: 'py softwaredeploy.py $COMPLETE_V3_JSON_FILE,' and store it under the name 'swdeploy.txt'  as done in our setup.

5. Go to Admin >> Automation >> Custom Triggers >>  Approval and provide saved .txt  file name i.e swdeploy.txt  under Actions >> execute script. Refer to the screenshot.

 

6. Softwares deployment in UEM will be initiated when Service request is approved.



A short guide on setting up python is available here.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Service request approvers

                       This report helps to find the who all the service request approvers in the application.  SELECT aaauser.first_name "Approver Name", dpt.deptname "Department", sdo.name "Site", sd.jobtitle "Job Title" FROM srapproverdetails LEFT JOIN aaauser ON ...
                    • Convert Incident to Service Request

                      For builds before 10536 The option will be available at: open the respective request > Actions > Convert incident to service request For builds after 10600. Edit the respective request > click on the Template dropdown [top-right corner] > Choose the ...
                    • 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 ...
                    • To make SLA mandatory while creating a service request

                      The steps mentioned below make the SLA selection mandatory for any service request creation. Tested in builds : 14000 and 14301. Script: if(!jQuery("#servicesla-selected").attr("data-association-id") || ...
                    • Query to list Service Request Approver and Purchase Request Approver (MSSQL & PGSQL)

                      Tested in Build PGSQL (14300) or MSSQL (14306) Select aau.first_name "Name", po.approverstatus "Purchase Request Approver", sr.approverstatus "Service Request Approver", adef.org_name "Account" from aaauser aau left join POApproverDetails po on ...