Edit

ExportImage (domain, ident)

Result type:  string (a path)

Definition:  Exports an image attached to a transaction, product, or other key to a temporary file.

The domain parameter may be "product", "name", or "key". The ident should be a sequence number of a transaction, a product code, or a user defined key, respectively.

If an image exists for the given domain and identifer, it will be copied into a new file in the system temp directory, and the path to the file will be returned.

Example: 

let path = ExportImage("transaction", 1234)
File_Move(path, "Your Image.jpg") // moves to MoneyWorks Automation folder

Availability:  available within MWScript handlers.