Attach a script file to a MID Server

You can attach a script file to synchronize to a connected MID Server, to enable using the script file attachment.

Before you begin

Role required: admin

About this task

You can attach multiple files, but the last attached file gets synchronized to the MID Server. If you delete the attachment, the script file becomes inactive, and the synchronized file is deleted from MID Server.

Procedure

  1. Navigate to MID Server > Script Files.
  2. Open the file to which you would like to attach the script file, or click New to create a new file.
  3. Select Use attachment, and then click the paperclip icon to add the attachment.
    Note: When Use attachment is checked, an attached script file overrides the script contained in the Script field. If this check box is cleared, the script in the Script field is used instead of the attachment.

    The script file attachment name must match the MID Server script file name, since the record can contain other attachments.

  4. Click Update to initiate the synchronization process.
    Ensure that the file name matches the script name.
    Note: If you receive the error message: File type not permitted or mime type does not match the file content, request that your administrator turn off mime type validation on attachments. The system property glide.security.file.mime_type.validation controls this setting.