---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# MIDServerFileSync - Global

# MIDServerFileSync - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The MIDServerFileSync script include provides methods to check to see if there are any changes to attachments on tables that are instances of MID Server synchronized files (ecc_agent_sync_file) and, if so, notifies the MID Servers of a change.

The tables that extend the sync tables are MID Server JAR file (ecc_agent_jar) and MID Server MIB File (ecc_agent_mib).

Use in server scripts to notify MID Servers.

## MIDServerFileSync - MIDServerFileSync() {#ariaid-title2}

Creates an instance of MIDServerFileSync.
{#r_MSFS-MIDServerFileSync__table_wqm_ddl_zt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#r_MSFS-MIDServerFileSync__table_wqm_ddl_zt}

## MIDServerFileSync - notifyMIDServers(String table) {#ariaid-title3}

Checks for any changes to attachments on the specified table that are instances of MID
server synchronized files and, if so, notifies the MID servers of a change.
{#r_MSFS-notifyMIDServers_S__table_t2r_ldl_zt__entry__3}

| Name | Type | Description |
|-|-|-|
| table | String | The table to check |
[Table 2. Parameters]

{#r_MSFS-notifyMIDServers_S__table_t2r_ldl_zt} {#r_MSFS-notifyMIDServers_S__table_u2r_ldl_zt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 3. Returns]

{#r_MSFS-notifyMIDServers_S__table_u2r_ldl_zt}  

    var msfs = new MIDServerFileSync();
    msfs.notifyMIDServers('ex.table.name');


