Update Requester from Request Description

Update Requester from Request Description

Usecase:
When a request is submitted on behalf of a user via email, the request description includes the requester's full name. This must be parsed in order to update the ticket requester.

Steps to follow:
  1. Goto Admin > Request Custom Functions > Global function > New > Paste the content from the attachment  Global function_4.txt  and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.

    4. Incase of older builds you can use the techniciankey with admin privilege.
  3. Go to Admin --> Request Custom Functions. Create a new function.
    1. Refer to the attached script. (updateRequesterFromDescription.txt.)
    2. Update the global function count in the script as per your instance.
    3. Sample Description content:

  4. Configure Request custom trigger to get executed on every request being created with "mode" as "email".


                  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 ...
                    • Request aging with recent worklog comments (MSSQL)

                      Tested in MSSQL build (14306) SELECT wo.WORKORDERID AS "Request ID", CASE WHEN (wo.is_catalog_template) = 'false' THEN 'Incident' ELSE 'Service Request' END "Request Type",dpt.DEPTNAME AS "Department",pd.PRIORITYNAME AS "Priority", wo.TITLE AS ...
                    • How to populate requester details in request additional field.

                      This sample script is to populate the requester details in a request additional field.  Based on the requester name selected, we can fetch the user additional field informations using Field and Form Rules (FAFR) and populate the content in request ...
                    • Document for Request Custom Menu and Custom Triggers

                      Attached a PDF file explaining with screenshots on how Request Custom Menu & Custom Triggers work.  
                    • Duplicate Request

                      Usecase: Script to duplicate the request in a single click using Callback Function and Page Script. Steps to configure: Download the attached files Login to SDP and navigate to Admin > Developer Space > Global Function > Copy & Paste the attached ...