Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

01. Navigation Attribute

At first we need to configure navigation attribute for the organization with the following commands.

...

ValueMappingConfiguration:

Code Block
"ValueMappingConfiguration": {

...


	"FieldNamesWithMapping": [

...


	  {
		"FieldName": "Rank",

...


		"MappingMode": "Complete",

...


		"MappingFileName": "ValueMapping-Rank.json"

...


	  }
	]
}

If a user field value needs to be mapped to a different value then this section can be configured. Value mapping is only available for OPFs.

...

Example for a ValueMappingRank.json array

Code Block
[

...


    {
   	 "SourceValue": "Capt.",

...


   	 "TargetValue": "Captain"

...


    },

...


    {
   	 "SourceValue": "Captain",

...


   	 "TargetValue": "Captain"

...


    },

...


    {
   	 "SourceValue": "1st Eng.",

...


   	 "TargetValue": "First Engineer"

...


    },

...


    {
   	 "SourceValue": "2nd Eng.",

...


   	 "TargetValue": "Second Engineer"

...


    }
]

DataSanitationConfiguration

Sample Configuration:

Code Block
  "DataSanitationConfiguration": {

...


    "FieldsToSanitize":

...

 [
      {
        "FieldName": "DeptCode",

...


        "ReduceToSingleWhiteSpace": "true",

...


        "SanitizeValues":

...

 [
          {
            "Original": "XT",

...


            "Replacement": "xt"

...


          },
          {
            "Original": ",",

...


            "Replacement": "+"

...


          }
        ]
      }
    ]
  }

The user importer can configure OPFs/user properties which need to be ‘sanitized’. Other than this there are few sanitization rules which are applied by default.

...