Skip to main content

SyncExportAsset

Structure

SyncExportAsset(sSyncMapName, sCompany, sID, sFileName, bLab)

Parameters

ParameterTypeDescription
sSyncMapNameStringName of the Sync Map to be used - this should be an export-related sync map
sCompanyStringCompany that owns the asset being exported
sIDStringID of the asset being exported
sFileNameStringFile Name for the resulting zip
bLabBooleanTrue 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)