SyncExportAsset
Structure
SyncExportAsset(sSyncMapName, sCompany, sID, sFileName, bLab)
Parameters
| Parameter | Type | Description |
|---|---|---|
sSyncMapName | String | Name of the Sync Map to be used - this should be an export-related sync map |
sCompany | String | Company that owns the asset being exported |
sID | String | ID of the asset being exported |
sFileName | String | File Name for the resulting zip |
bLab | Boolean | True if 'Action Performed By' is 'Lab/Central'. False if 'Action Performed By' is 'Customer/Remote |
Return value
String
Description
This function is related to Sync Maps as setup within IndySoft DataSync - Options. This function exports a single asset to a file based on a sync map.
Example
sSyncMapName = "TEST123"
sCompany = "ABC COMPANY"
sID = "TEST123"
' name file according to asset, remove characters not appropriate for a filename
sFileName = sCompany & "-" & sID & "-" & FormatDateTimeForSQL(Now)
sFileName = ReplaceExtended(sFileName)
sFileName = sFileName & ".ZIP"
sResult = SyncExportAsset(sSyncMapName, sCompany, sID, sFileName, bLab)
DebugLog(sResult) SendEMail("notrealperson@notgmail.com", "", "", "SyncExportAsset Results", "", "SYNCMAP", sResult, False, False)