d365fo_set_connection
Securely register the D365 F&O connection (URL + Entra app-registration credentials) for the CURRENT session. The client secret is encrypted in memory (AES-256-GCM), never written to disk and never echoed back. Once set, all odata_* and dmf_* tools use it automatically until it expires or you call d365fo_clear_connection.
Use this instead of resending the secret on every call. In a locked server deployment (D365FO_LOCK_SERVER_CONFIG=true) this tool is disabled and the server's own environment credentials are used instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseUrl | Yes | F&O environment base URL, e.g. https://yourenv.cloudax.dynamics.com (https only). | |
| clientId | Yes | App registration (client) id (GUID). | |
| tenantId | Yes | Entra (Azure AD) tenant id (GUID). | |
| ttlMinutes | No | Minutes the connection stays cached for this session (1-480). Default 60. | |
| clientSecret | Yes | App registration client secret. Encrypted in memory; never logged or persisted. |