Click or drag to resize

IDocumentSearchName Property

SearchName This is not implemented in CRM SIX, for later use

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
string SearchName { get; set; }

Property Value

Type: String
Examples

Searchname

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objDB
Dim msg

Set objDB = CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objDB.login "<userid>", "<password>" ' log in to the database

    Set myDocument = objDB.GetDocument(2) 'get document with document_id=2
    msg = msg & "Number of documents attached: " & myDocument.ActivityLinks.Documents.Count & vbCrLf
    msg = msg & "Group id: " & myDocument.Group.Id & vbCrLf
    msg = msg & "Private to group: " & myDocument.PrivateToGroup.Id & vbCrLf
    msg = msg & "Publish type: " & myDocument.PublishType & vbCrLf
    msg = msg & "Search name: " & myDocument.SearchName & vbCrLf
    msg = msg & "Are all required fields filled: " & myDocument.Sentry.AreAllRequiredFieldsFilled & vbCrLf
    msg = msg & "Number of userdefined fields: " & myDocument.UDef.Count & vbCrLf

    MsgBox msg, vbInformation, "SuperCOM"
Else
    MsgBox "unable to connect to database"
End If
Set objso = Nothing

See Also