Accessory Objects:
$name = New-GSharedContactNameObj -GivenName "John" -FamilyName "Doe" -FullName "John Doe"
$email = New-GSharedContactEmailObj -Address "John...@email.com" -Label "Work"
$phone = New-GSharedContactPhoneNumberObj -Label "Work" -Text "8080"
Build contact:
New-GSharedContact -Name $name -PhoneNumbers $phone -Emails $email -Domain domain.com
When retrieving this contact the name property is unpopulated, all other properties have their set values.
Any tips?
Thank you!
Error reported when creating a shared contact only with the name specified:
New-GSharedContact : Google.Apis.Requests.RequestError
Entry does not have any fields set. [0]