Hi,
I'm using the InstallScript of an automation script to import multiple .dmimport files into a DMS. This is done via a SLNET call using ImportRequestMessage, where I provide the filename of the .dmimport file to create elements, protocols, and templates.
This works well for initial imports. However, when I try to update existing protocols or elements by running the script again, I receive an info message like:
" already exists, skipping import"
To resolve this, I tried to configure the options to ensure existing elements, protocols, and templates are always replaced. I looked into the SLNET message generated when performing the import manually via Cube, selecting the "Replace existing files" option in the dialog. However, I couldn't inspect the contents of the specificOptions list objects (see attached screenshot).
Does anyone know what values I should pass in the specificOptions of the ImportRequestMessage to ensure that existing items are properly overridden during import?


The specific options are not what you need. They are the same as regular options, just overriden for a specific instance of the type.
E.g. apply these options for all elements except element 123/456 which has these options instead...
What you need is to set the regular options with the correct flags you need.
The magic numbers you see and "cannot inspect" are enum flags combined together in an integer. The specific option flag depends on the delt type.
Example for type DELTType.DELT_ELEMENT are the flags in DELT_ELEMENT_OPTIONS.
There you will need option DELT_ELEMENT_IMPORT_OVERRIDE for your use case.