TreeINFO-For-M365 documentation
    Preparing search index...

    Interface SearchWpGroupSourceSP

    interface SearchWpGroupSourceSP {
        DefaultQuery?: string;
        OrderBy?: { Ascending?: boolean; Field: string };
        SearchScope: "SourceList";
        SourceList: string[];
        Type: "SP";
    }
    Index

    Properties

    DefaultQuery?: string

    Optional static CAML Where element appended to every search query.

    OrderBy?: { Ascending?: boolean; Field: string }

    Default sort order applied to every query. Translated to CAML <OrderBy>. Applied before MaxItems truncation — ensures the most relevant items are returned first. When omitted, SP returns items in its natural order (typically by ID ascending).

    Type declaration

    • OptionalAscending?: boolean

      Sort direction. Defaults to descending (false).

    • Field: string

      Internal field name to sort by.

    SearchScope: "SourceList"
    SourceList: string[]

    Array of list relative urls of the lists to be searched.

    ["{SiteUrl}/InboundInvoices", "{SiteUrl}/InboundInvoicesArchive"]
    

    It may also include wild card *

    ["{SiteUrl}/waybill_*"]
    

    It may also include regular expression. The $ suffix should be specified.

    ["invoice_archive_\d{4}$"]
    
    Type: "SP"