Dynamic loading of field data from an external CSV file

Dynamic loading of field data from an external CSV file

Requirement:
Load data to additional fields dynamically from an external CSV file based on another field value.

Usecase:
Assume, a request template includes three additional fields: 'Client Code,' 'Client Name,' and 'Client Address.' When a pick-list value for the 'Client Code' field is selected, the corresponding field values for the 'Client Name' and 'Client Address' data must be dynamically populated by retrieving it from an externally stored CSV file. This will be useful when the number of field values increases.

Steps to follow:
1.  Create 3 Additional fields and include these in the required template
  1. Client Code - Picklist additional field  - Content has to be pre populated with all the client codes(script1) or Single Line additional field - we can load this content from CSV as well(script2)
  2. Client Name - Single line additional field - Content will be populated from the CSV File
  3. Client Address - Single line additional field - Content will be populated from the CSV File.
2.  Compose a CSV file with first column as the "Client Code", then "Client Name" and finally "Client Address".   Place this CSV File in "<SDP_Home>\custom" Folder

3.  Download the attached script and update the UDF Field names & CSV file headers in the script.


UDF Field Names can be taken from the FAFR window itself, type in the Field Label and you will get the respective Field Name.


4.  Configure the script on Field change for the first additional field : Client Code.

5.  Other fields will be auto populated.

If you are still unable to view the file despite retaining it in the custom folder, replace the attached security xml in location: <SDP_Home>\custom\WEB-INF\security folder


                  New to ADSelfService Plus?

                    • Related Articles

                    • Dynamic loading of field data from an external CSV file - tested in 14.2 version

                      Requirement: Load data to additional fields dynamically from an external CSV file based on another field value. Usecase: Assume, a request template includes three additional fields: 'Client Code,' 'Client Name,' and 'Client Address.' When a pick-list ...
                    • 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 implement dynamic request approval through custom triggers with configurable CSV file.

                      This is a sample script written in Python to handle Conditional Approvals for Incident \ Service Requests, through Custom Triggers.More information about Conditional Approvals can be  found in the link here One of the advantages of using this script ...
                    • Import and update Requester from CSV (Comma Separated Value) Files

                      Import Requester from CSV (Comma Separated Value) Files You can also add requesters by importing from CSV files. To import requesters from CSV file   Step 1: Locate the CSV file Click Import from CSV link in the Requester List page. The Import ...
                    • User Import Issue (CSV)

                      While importing Contact or Support Rep via CSV many customer face issue with importing getting failed The most comman reason is that the CSV file may not have the password for the users getting imported We have set the Display Name and Login Name as ...