...
Default Existing User check:
Custom Integrations and Custom CSV Formats:
Custom Integration require a new release as a new class must be added to the MarineLMS.CustomerService.Impl project that inherits from 'CustomerUserIntegration'. There are 2 methods that are able to be implemented so they are called during the import to be used to run custom code:
- DoInitialOrgWork() - Any code that needs to be run before the batcher get's called. This can be used to setup special organization specific logic.
- DoInitialUserWork() - Any code that needs to be run with the uow before it starts creating a user.
Additionally, you are wanting to add some logic to the end of the user creation process, the custom class can override:
protected virtual void FinishUser(ICoreUnitofWork uow, IUser user, string[] csvRow)
However be sure to call the base function first:
protected override void FinishUser(ICoreUnitofWork uow, IUser user, string[] csvRow)
{
base.FinishUser(uow, user, csvRow);..... //custom code
}
Example of a configured org using custom integration: NOTE: As of 3.6.3 The CUKUserImporter class no longer exists. The CarnivalUserImporter has consolidated all the code and now supports DateOfBirth in passwords.
Example of a configured org csv (CUK)
Auto User Importer (via background thread)
...