Script to Populate User Additional Field under Incident Template using FAFR

Script to Populate User Additional Field under Incident Template using FAFR

The script load the Requester Name under Incident Additional field ( As a pick list), by choosing the requester name under additional field the script populates the user additional field value.

* Kindly create two additional fields under Admin -> Incident Additional Fields 
   Additional field 1 - To display Requester name 
   Additional field 2 - To display User additional field updated for selected requester. 
   User Additional field - Which holds the value that needs to be displayed under the request template. 

Below is the column name for additional field 1 and additional field 2 ( which needs to be updated under the script)


API Field name - User Additional Field 




* Navigate to Admin - > Incident Template -> Edit the template and configure the rule as shown below (Under Form Load).  Modify the additional field column name and user additional field api name under attached script and update it under FAFR as shown below. 






      New to ADSelfService Plus?

        Resources

            • Related Articles

            • How to diff of two Date& Time fields using FAFR

              If you have two date and time additional fields or default fields, and if you want to capture the difference between those two fields in Hours and minutes, then use the below script to capture the value in an additional field, Under the respective ...
            • 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 import user additional fields using LDAP

              In order to import additional fields or map any other fields in AD to the system fields, a row needs to be updated with the appropriate values You can follow the below steps  1. Take a trimmed backup of the database. 2. Connect to the Database 4. Run ...
            • FAFR - Sample script to have the additional field value appended to the actual subject line

              Here is a sample script to be used in FAFR to have the additional field info appended to the actual subject line, var contract=$CS.getValue("WorkOrder_Fields_UDF_CHAR5"); var subject=$CS.getValue("SUBJECT"); var new_subject = subject + " : " + ...
            • Query to display additional field associations with templates

              Use case The reports shows in which templates the created additional fields are associated  Query select sd.name "Service Catalog Name",            rt.templatename "Template name",            fc.field_name "Fields" from requesttemplate_list rt left ...