Skip to end of banner
Go to start of banner

User Importer (as Integrator)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current Restore this Version View Version History

« Previous Version 4 Next »

01. Navigation Attribute

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

AddNavPageAttribute [path] System.Customer.NIUserCsvIntegrator.IsTestMode True

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.CsvDelimiter ","

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.ImportFileBackupPath [value]

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.ImportFilePath [value]

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.SchedulePeriod "1"

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.PollingInterval "1"

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.CsvTranslations [value]

Example of CsvTranslations:

AddNavPageAttribute [path] System.Customer.Integrator.NIUserCsvIntegrator.CsvTranslations OrgLoginId=UniqueUserID,FirstName=FirstName,LastName=LastName,Password=DateOfBirth,EmailAddress=PersonalEmailAddress,Rank=Rank,Vessel=Vessel,Language=Language,DeptCode=DeptCode,Deactivate (X)=Deactivate (X)

In csv translation, the right side of the '=' is the column name in the csv whereas the left side is the system properly name.

01. User Integrator Configuration

Now we need to configure the UserIntegratorConfigFile.json file which contains the configuration of how imported data will be processed. This file has 10 different section for different purposes.

  1. DataConsistencyCheckConfiguration

  2. ValueMappingConfiguration

  3. DataSanitationConfiguration

  4. ResetFieldsToDefaultIfEmptyConfiguration

  5. DataFormattingConfiguration

  6. DataAssemblerConfiguration

  7. DataValidationConfiguration

  8. PasswordConfiguration

  9. AutoUserDeactivationConfiguration

  10. UserImporterConfiguration

DataConsistencyCheckConfiguration:

"DataConsistencyCheckConfiguration" : {

}

Currently there is no configurations in this section here

ValueMappingConfiguration:

"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.

FieldName: It points to the field in LMS

MappingMode: It can be three different types.

  • Complete (default): For ScS field, all the values must be present as target value in the value mapping file. Otherwise it will be considered as configuration error.

  • WarnIfMappingIsMissing: Ignores any missing mapping and try to set the OPF value as is. Add a warning to the notification

  • IgnoreMissingMappings: Ignore any missing mapping and try to set the OPF value as is - without mapping. Don’t add a warning/error to the notification.

MappingFileName: This property points to the location of the file that contains the mapping of source value and target value.

Example for a ValueMappingRank.json array

[
{
"SourceValue": "Capt.",
"TargetValue": "Captain"
},
{
"SourceValue": "Captain",
"TargetValue": "Captain"
},
{
"SourceValue": "1st Eng.",
"TargetValue": "First Engineer"
},
{
"SourceValue": "2nd Eng.",
"TargetValue": "Second Engineer"
}
]

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.