< Back

Get-D365CeODataConfig

Mon Jan 13, 2020 8:42 am

NAME Get-D365CeODataConfig



SYNOPSIS

Get OData configs





SYNTAX

Get-D365CeODataConfig [[-Name] <String>] [-OutputAsHashtable] [-EnableException] [<CommonParameters>]





DESCRIPTION

Get all OData configuration objects from the configuration store





PARAMETERS

-Name <String>

The name of the OData configuration you are looking for



Default value is "*" to display all OData configs



Required? false

Position? 1

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-OutputAsHashtable [<SwitchParameter>]

Instruct the cmdlet to return a hashtable object



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

PSCustomObject





NOTES





Tags: OData, Environment, Config, Configuration, ClientId, ClientSecret



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



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



PS C:\\>Get-D365CeODataConfig



This will display all OData configurations on the machine.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-D365CeODataConfig -OutputAsHashtable



This will display all OData configurations on the machine.

Every object will be output as a hashtable, for you to utilize as parameters for other cmdlets.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-D365CeODataConfig -Name "UAT"



This will display the OData configuration that is saved with the name "UAT" on the machine.











RELATED LINKS

Add-D365CeODataConfig

Get-D365CeActiveODataConfig

Set-D365CeActiveODataConfig