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 mapsCompany | String | Company that owns the asset being exportedsID | String | ID of the asset being exportedsFileName | String | File Name for the resulting zipbLab | 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)
Application Compatibility
IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management |