msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

New-MgUserContact : were unable to deserialize

Open shaun-borlinghaus opened this issue 2 years ago • 0 comments

The following code (can't get it to show as code for some reason):

`Import-Module Microsoft.Graph.PersonalContacts

Connect-MgGraph

Select-MgProfile –Name "beta"

$params = @{ GivenName = "Given" Surname = "Sur" EmailAddresses = @( @{ Address = "[email protected]" Name = "Given Sur" } ) BusinessPhones = @( "+1 555 555 5555" ) } $userId = "[email protected]"

New-MgUserContact -UserId $userId -BodyParameter $params`

fails with:

New-MgUserContact : were unable to deserialize At line:1 char:1

shaun-borlinghaus avatar Aug 05 '22 23:08 shaun-borlinghaus