{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1062,"path":"api-reference/server-api-reference/c_MIDServerFileSyncAPI.md","title":"MIDServerFileSync - Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# MIDServerFileSync- Global\n\nThe 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.\n\nThe tables that extend the sync tables are MID Server JAR file \\(ecc\\_agent\\_jar\\) and MID Server MIB File \\(ecc\\_agent\\_mib\\).\n\nUse in server scripts to notify MID Servers.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## MIDServerFileSync - MIDServerFileSync\\(\\)\n\nCreates an instance of MIDServerFileSync.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n## MIDServerFileSync - notifyMIDServers\\(String table\\)\n\nChecks 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.\n\n|Name|Type|Description|\n|----|----|-----------|\n|table|String|The table to check|\n\n|Type|Description|\n|----|-----------|\n|void| |\n\n```\nvar msfs = new MIDServerFileSync();\nmsfs.notifyMIDServers('ex.table.name');\n```\n\n"}}