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") || ...
                    • 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 ...
                    • SLA not working

                      There are a few configurations that need to be checked 1. Account/Site Check the request Account & Site, Now, go to Admin>Service Level Agreements>Filter the Account & Site and make sure the SLA is created for the same  2. Operational Hours Go to ...
                    • Account specific request template: Redirection to requester's account based template from default template using FAFR

                      Tested in builds 14000, 14200 and 14201 (Global FAFR): Step 1: In Global FAFR, on form load, configure an FAFR and execute the below script under Action as shown below, try{ $req.form.destroyForm(undefined, false); }catch(err){} ...