Skip to content
Aleksandr Rogov edited this page Sep 20, 2023 · 2 revisions

Interface: Config

Table of contents

Properties

Properties

dataApi

Optional dataApi: ApiConfig

Configuration object for Dataverse Web API (with path "data").


headers

Optional headers: HeaderCollection

Default headers to supply with each request.


impersonate

Optional impersonate: null | string

Impersonates a user based on their systemuserid by adding "MSCRMCallerID" header. A String representing the GUID value for the Dynamics 365 systemuserid.


impersonateAAD

Optional impersonateAAD: null | string

Impersonates a user based on their Azure Active Directory (AAD) object id by passing that value along with the header "CallerObjectId". A String should represent a GUID value.


includeAnnotations

Optional includeAnnotations: null | string

Sets Prefer header with value "odata.include-annotations=" and the specified annotation.Annotations provide additional information about lookups, options sets and other complex attribute types.


maxPageSize

Optional maxPageSize: null | number

Sets the odata.maxpagesize preference value to request the number of entities returned in the response.


onTokenRefresh

Optional onTokenRefresh: null | () => Promise<null | string | AccessToken>

A function that is called when a security token needs to be refreshed.


proxy

Optional proxy: null | ProxyConfig

Proxy configuration object.


returnRepresentation

Optional returnRepresentation: null | boolean

Sets Prefer header request with value "return=representation".Use this property to return just created or updated entity in a single request.


searchApi

Optional searchApi: ApiConfig

Configuration object for Dataverse Search API (with path "search").


serverUrl

Optional serverUrl: null | string

The url to Dataverse API server, for example: https://contoso.api.crm.dynamics.com/. It is required when used in Node.js application.


timeout

Optional timeout: null | number

Sets a number of milliseconds before a request times out.


useEntityNames

Optional useEntityNames: null | boolean

Indicates whether to use Entity Logical Names instead of Collection Logical Names.

Clone this wiki locally