ComplexType

A PSObject that provides access to the metadata information of a specific OData complex type,
often used by ERP systems to group related properties and provide additional information for entities (for example: SAP Gateway).

Similar to an EntityType, it defines a structure of properties. However, it does not define keys and is therefore not directly associated with an EntitySet.
Instead, a ComplexType can be referenced by one or multiple entity types.

Syntax

$complexType.Name

Following properties are available:

Type

Name

Description

string

Name

The name of the complex type.

string

Namespace

The namespace where the complex type is located in.

System.Uri

Service

The Url of the Service.

Property[]

Properties

All properties with a simple primitive- or enumeration type.

ComplexTypeProperty[]

ComplexTypeProperties

All properties that reference other complex types.

NavigationProperty[]

NavigationProperties

All properties that define relationships to entity types.