Zetadocs Interface

<< Click to Display Table of Contents >>

Navigation:  Zetadocs SDK Guide > Zetadocs SDK API >

Zetadocs Interface

Zetadocs Interface Codeunit

 

The Zetadocs Interface codeunit exposes procedures that allow you to use the Zetadocs functionality.

 

Method name

Description

SearchViaZetadocs(RecordId, List of [Dictionary of [Text, Text]])

Search for related Documents.

TrySearchViaZetadocs(RecordId, List of [Dictionary of [Text, Text]]): Boolean

Tries to search for documents related to the RecordID provided. Returns true if the operation succeeds.

 

 

SearchViaZetadocs

Search for documents related to the RecordID provided.

 

Syntax

Search(recordIds: List of [recordId]; var searchResultDictionary: List of [Dictionary of [Text, Text]])

Search(recordId: recordId; var searchResultDictionary: List of [Dictionary of [Text, Text]])

 

Parameters

recordIds

Type: List of [RecordId]

This list of Business Central records will be used to search for linked documents in SharePoint.

 

recordId

Type: RecordId

This Business Central record will be used to search for linked documents in SharePoint.

 

searchResultDictionary

Type: List of [Dictionary of [Text, Text]]

You should iterate over the list to retrieve a further dictionary, containing the metadata for the related file. The currently available metadata is as follows:

Modified, FileName, Url, DocumentReference, DocumentType.

 

TrySearch Method

This method gives you the ability to retrieve the list of documents from SharePoint that are associated with the Business Central records. For performance reasons it is best to build up a list of RecordIds then perform the search once.

 

Syntax

TrySearch(recordIds: List of [recordId]; var searchResultDictionary: List of [Dictionary of [Text, Text]]) WasSearchSucess: Boolean

TrySearch(recordId: recordId; var searchResultDictionary: List of [Dictionary of [Text, Text]]) WasSearchSucess: Boolean

 

Parameters

recordIds

Type: List of [RecordId]

This list of Business Central records will be used to search for linked documents in SharePoint.

 

recordId

Type: RecordId

This Business Central record will be used to search for linked documents in SharePoint.

 

searchResultDictionary

Type: List of [Dictionary of [Text, Text]]

You should iterate over the list to retrieve a further dictionary, containing the metadata for the related file. The currently available metadata is as follows:

Modified, FileName, Url, DocumentReference, DocumentType.

 

Return Value

WasSearchSucess

Type: Boolean

Indicates if the search to SharePoint was successfull.