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

    Interface ExternalLookupRequestOverride

    Allows the custom function to override URL, headers, body, and query parameters of the HTTP request. Any property left undefined falls back to the value from WSDataSourceConfiguration.

    Return { request: ExternalLookupRequestOverride } from ExternalLookupCustomFunction_<fieldName> to use this.

    See WSAdvancedExample for usage examples.

    interface ExternalLookupRequestOverride {
        body?: unknown;
        headers?: Record<string, string>;
        method?: string;
        params?: Record<string, string>;
        soapAction?: string;
        soapEnvelope?: string;
        url?: string;
    }
    Index

    Properties

    body?: unknown

    Request body for POST.

    headers?: Record<string, string>

    HTTP headers (e.g. { "Authorization": "Bearer <token>" }).

    method?: string

    Overrides the HTTP method (e.g. "PUT", "PATCH", "DELETE"). Defaults to WSDataSourceConfiguration.MethodName. Ignored when WSDataSourceConfiguration.RequestType is "SOAP" — SOAP requests always use "POST".

    params?: Record<string, string>

    Query parameters appended to the URL.

    soapAction?: string

    SOAP action header value (e.g. "http://example.com/GetSupplier"). When both soapAction and soapEnvelope are provided, the request is sent as a SOAP POST with Content-Type: text/xml.

    soapEnvelope?: string

    SOAP XML envelope string. Used as the request body when soapAction is also provided.

    url?: string