Skip to content

Object cast bug when calling OData actions and functions that return a collection. #610

Closed
@nonodename

Description

@nonodename

Calling Get-MgGroupDelta with no parameters once connected results in a object cast error.

Steps to reproduce:

Install latest version (1.4.2) of the SDK.

PS C:\Users\db> get-installedmodule microsoft.graph

Version              Name                                Repository           Description
-------              ----                                ----------           -----------
1.4.2                Microsoft.Graph                     PSGallery            Microsoft Graph PowerShell module

Connect to graph

PS C:\Users\db> connect-graph -scopes "group.read.all","user.read.all"
Welcome To Microsoft Graph!

Run command

PS C:\Users\db> Get-MgGroupDelta
Get-MgGroupDelta_Delta1: Unable to cast object of type 'Microsoft.Graph.PowerShell.Runtime.Json.JsonObject' to type 'Microsoft.Graph.PowerShell.Runtime.Json.JsonArray'.

AB#8851

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions