msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
New-MgUserContact : were unable to deserialize
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
- New-MgUserContact -UserId "[email protected]" -BodyPara ...