Zum Hauptinhalt springen

createFileType

createFileType(params, skipIfExists?): boolean

Creates a new file type with all associated configurations and settings.

This method orchestrates the creation of a complete file type including:

  • Basic file type attachment
  • Hit list configurations
  • Search mask configurations
  • Category associations
  • Register field attachments with positioning
  • Access profile assignments
  • File access permissions
  • File class protections
  • Action configurations with workflow settings

Parameters​

params​

CreateFileTypeParams

The file type creation parameters

skipIfExists?​

boolean

Whether to skip creation if the file type already exists. Defaults to true.

Returns​

boolean

true if the file type was created successfully, false if it already exists

Throws​

When the file type was not successfully created

Remarks​

  • If a file type with the same title already exists, the method returns false without creating a duplicate
  • Contains workarounds for register field relations and action workflow settings that don't work through standard attachment
  • Automatically resets field properties after applying file class protections due to known issues
  • All operations are logged with debug-level logging for troubleshooting