Cmdlets

All the following OData cmdlets support OData version v1, v2, v3, v4.
They all try to perform as less server requests as possible, in order to ensure high performance when communicating over the network or the internet with your ERP system.

Connection management

Cmdlets for connection establishment with OData services:

Name

Description

Connect-ERP

Connects to an ERP-System.

Disconnect-ERP

Disconnects from an ERP-System.

Cmdlets to read metadata of connected OData services:

Name

Description

Get-ERPServices

Returns information about the connected services

Get-ERPEntitySets

Returns information about the available entitySets

Get-ERPEntityTypes

Returns information about the available EntityTypes.

Performance

When some of the services are permanently not available, you can speed up your process by disconnecting them.
Please see example Disconnect all not available services.


The following Cmdlets require a successful connection between the current application and the ERP system or powerGateServer.
For them to work properly, all the necessary ERP services (or a single CatalogService) must have been previously connected by the Connect-ERP cmdlet.

Entity transfer

Cmdlets for reading, adding, updating and removing OData entities:

Name

Description

Get-ERPObject

Returns a specific entity from the ERP-System.

Get-ERPObjects

Searches for entities depending on the passed arguments.

Update-ERPObject

Updates an existing entity on the ERP-System.

Add-ERPObject

Creates a new entity and transfers it to a ERP-System.

Remove-ERPObject

Deletes a specific entity from the ERP-System.

New-ERPObject

Returns a new default instance of the desired ERP entity.

Media exchange

Cmdlets for downloading, uploading and updating OData media files such as images, text files or even Autodesk file formats:

Name

Description

Add-ERPMedia

Uploads media files to the ERP-System.

Get-ERPMedia

Downloads media files from the ERP-System.

Update-ERPMedia

Updates media files on the ERP-System.