< Back

Add-D365CeODataConfig

Mon Jan 13, 2020 8:41 am

NAME Add-D365CeODataConfig



SYNOPSIS

Save an OData config





SYNTAX

Add-D365CeODataConfig [-Name] <String> [[-Tenant] <String>] [[-Url] <String>] [[-ClientId] <String>]

[[-ClientSecret] <String>] [-Temporary] [-Force] [-EnableException] [<CommonParameters>]





DESCRIPTION

Adds an OData config to the configuration store





PARAMETERS

-Name <String>

The logical name of the OData configuration you are about to register in the configuration store



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Tenant <String>

Azure Active Directory (AAD) tenant id (Guid) that the D365CE environment is connected to, that you want to

access through OData



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Url <String>

URL / URI for the D365CE environment you want to access through OData



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClientId <String>

The ClientId obtained from the Azure Portal when you created a Registered Application



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClientSecret <String>

The ClientSecret obtained from the Azure Portal when you created a Registered Application



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Temporary [<SwitchParameter>]

Instruct the cmdlet to only temporarily add the OData configuration in the configuration store



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

Instruct the cmdlet to overwrite the OData configuration with the same name



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-EnableException [<SwitchParameter>]

This parameters disables user-friendly warnings and enables the throwing of exceptions

This is less user friendly, but allows catching exceptions in calling scripts



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Tags: Integrations, Integration, Bearer Token, Token, OData, Configuration



Author: M????tz Jensen (@Splaxi)



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-D365CeODataConfig -Name "UAT" -Tenant "e674da86-7ee5-40a7-b777-1111111111111" -Url

"https://usnconeboxax1aos.cloud.onebox.dynamics.com" -ClientId "dea8d7a9-1602-4429-b138-111111111111"

-ClientSecret "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522"



This will create an new OData configuration with the name "UAT".

It will save "e674da86-7ee5-40a7-b777-1111111111111" as the Azure Active Directory guid.

It will save "https://usnconeboxax1aos.cloud.onebox.dynamics.com" as the D365CE environment.

It will save "dea8d7a9-1602-4429-b138-111111111111" as the ClientId.

It will save "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522" as ClientSecret.











RELATED LINKS

Get-D365CeODataConfig

Get-D365CeActiveODataConfig

Set-D365CeActiveODataConfig