ISaleDocumentLink Property |
Namespace: SuperOffice.COM.SuperOfficeDB
DocumentLink
This text may be copied to the notepad, and saved as a *.vbs file. You need a running CRM 5 to make it work. (This example uses the SuperOffice COM application library and not the SuperOffice db library interface).
This returns the filename of a linked document, if there is any.
Dim objSO Set objSO = CreateObject("SuperOffice.Application") If not (objSO is nothing) Then MsgBox "Current sales linked document filename: " & objSO.CurrentSale.Documentlink.filename, vbInformation + vbOKOnly, "SuperCOM" else MsgBox "Unable to connect to database" end if Set objSO = Nothing