Passa al contenuto principale

Sync Maps Launched From Scripting

PLEASE NOTE

The following topic may include references to the custom scripting aspects of the IndySoft product line and as such some aspects of the discussed features may not be accessible by end customers. For reference, the affected features will either use the word 'script' or phrase 'custom script.' Refer to the Custom Scripting Overview topic for more information about custom scripting and how it is implemented and supported within the product.An advanced method of calling a sync map export or import is to call the sync through a script procedure. Sync Maps can be executed from any scripting type in IndySoft (event scripts, equipment scripts, order system scripts, etc.). All sync map-related script procedures are documented in the custom scripting help - contact IndySoft Support for additional details.

But in general terms, simply note that scripts are capable of calling a sync map simply by name (import or export type) and performing the operation without user interface (no progress bar - but within current process) or by calling the Export/Import utility (external process). This method has the advantage of showing a progress bar - to note when the operation completes. Finally, additional functions are provided that can override default settings in the sync map like equipment filter, cloud folder, archive directory, etc.

Below is a listing of related script functions that can be used - see Scripting Help for additional details:

SyncExportAsset(sSyncMapName, sCompany, sID, sFileName, bLab): exports a single asset to a file based on a sync map

SyncImport(sSyncMapName, sFileName, sCompanyMap, sSQLUpdateAfterImport, bLab): imports a single file based on a sync map

SyncExportAndUpload(sSyncMapName, sEquipFilter, sService, sFolder, sLocalArchiveFolder, bLab, bOverwrite, bAllowAuth): exports a group of assets and uploads to cloud based upon a sync map, exceptions to various criteria allowed

SyncDownloadAndImport(sSyncMapName, sService, sFolder, sToDirectory, sCompanyMap, sSQLUpdateAfterImport, dtDateTime, bLab, bAllowAuth, bDeleteCloudAfterImport, bDeleteLocalAfterImport): downloads and imports one/more import files based upon a sync map, exceptions to various criteria allowed

SyncImportFromFiles(sSyncMapName, sToDirectory, sCompanyMap, sSQLUpdateAfterImport, dtDateTime, bLab, bDeleteLocalAfterImport): imports one/more import files from a network directory based upon a sync map, exceptions to various criteria allowed

SyncExportToFiles(sSyncMapName, sEquipFilter, sDirectory, bLab): exports a group of assets to a network directory based upon a sync map, exceptions to various criteria allowed

RunSyncMap(sSyncMapName): executes a sync map with all default settings - no user interface (progress bar)

CallSyncMap(sSyncMapName): executes a sync map with all default settings - with user interface (progress bar) |