Set SLA automatically for a service request using FAFR

Set SLA automatically for a service request using FAFR

Requirement:
Set SLA automatically for a service request depending on the requester site.

Usecase:
Let us consider a scenario where SLA has to be set depending on the requester's associated site.
To do this,  we need to create the required SLA list and associate it to the service request.  And then configure the below script.

Configure a FAFR > On Form Load - Applies to all requester:

setTimeout(function(){
  var requester_site = $CS.getValue("REQUESTER.SITE");
  var SLA = "Select";
  if (requester_site === "Site Mexico") {
    SLA = "SLA_ServicedeskMX_8Hrs";
  } else if (requester_site == "Site Ecuador") {
    SLA = "SLA_ServicedeskEC_8Hrs";
  } 
  jQuery('[id^=servicesla_option_]:contains("' + SLA + '")').trigger("click"); 
},400);

 $CS.getValue("REQUESTER.SITE");  >> This can be modified to any of the request fields or request additional fields, as per your requirement.

eg:
For Group:      $CS.getText("GROUP");
For Tech:         $CS.getText("TECHNICIAN"); 
For Site:          $CS.getText("SITE");
For Priority:    $CS.getText("PRIORITY");
For Impact:     $CS.getText("IMPACT"); 
For Level:        $CS.getText("LEVEL");




                  New to ADSelfService Plus?

                    • Related Articles

                    • Set SLA automatically for a service request using FAFR

                      Note: The below FAFR script will work only on 10600 MSP and above Requirement: Set SLA automatically for a service request depending on the Priority. Usecase: Let us consider a scenario where SLA has to be set depending on the requester's associated ...
                    • 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") || ...
                    • Custom Module-Based Dependent Fields with FAFR

                      In the dynamic world of IT service management, form simplicity and accuracy play a major role in how smoothly requests are handled. However, many organizations face a recurring challenge—dependent field limitations within ServiceDesk Plus. Currently, ...
                    • Script to set fields from CSV using FAFR.

                      Works in 10604 Requirement: Load Data from CSV depending on the value selected in an additional field. Usecase: Assume there are 3 additional fields for a request template, namely, "Reference number", "Payment type and "Vendor". "Reference number" is ...
                    • How to set due by time in a request with value from a date time additional field.

                      This python script is used to set the due by date in the request based on the value that is set in a date additional field.This is performed using apis for updating a request. UseCase: Request due by time will be set based on Incident / Service ...