AccessToken
- Last Updated: July 15, 2020
- 1 minute read
Purpose
Specifies the access token used to authenticate to Dynamics 365 with OAuth 2.0 enabled. Typically, this property is configured by the application; however, in some scenarios, you may need to secure a token using external processes. In those instances, you can also use this property to set the access token manually.
Valid Values
String
where:
String
is an access token you have obtained from the authentication service.
Notes
-
Access tokens are temporary and must be replaced to maintain the session without interruption. The life of an access token is typically one hour.
-
See "OAuth 2.0 authentication" for examples and more information.
Data Source Methods
public String getAccessToken()
public void setAccessToken(String)
Default Value
No default value
Data Type
String