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?

                    • Related Articles

                    • How to populate requester details in request additional field

                      Requirement: Populate requester additional field information into request additional field. Usecase: Let us consider a scenario where certain employee details are imported from the Active Directory into User - Additional Fields. The business ...
                    • How to populate user names in a request additional field

                      This sample script is to populate both technician and requester names in a request additional field Use Case: Populate all user name in a request additional field. Execution Steps:  1.  Create a new 'Single Line' additional field and add them in the ...
                    • 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 ...