New-GSharedContact Name property blank

24 views
Skip to first unread message

Garba

unread,
May 2, 2018, 2:06:05 PM5/2/18
to gshell-discuss
Hello, I'm having a weird issue with the New-GSharedContact cmdlet, the value passed by New-GSharedContactNameObj is not being uploaded EX:

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!

g.dep...@rocketlabusa.com

unread,
May 2, 2018, 5:02:16 PM5/2/18
to gshell-discuss

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]

Reply all
Reply to author
Forward
0 new messages