Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Pager #101

Open
DanielRonies opened this issue Jan 30, 2024 · 3 comments
Open

Sync Pager #101

DanielRonies opened this issue Jan 30, 2024 · 3 comments

Comments

@DanielRonies
Copy link

Hello!

Great job man!

Its possible sync the attribute "pager"?

Thank you!!

@grahamr975
Copy link
Owner

@DanielRonies

I've never tested this, but in theory, you should be able to modify the Set-EXCContactObject.ps1 & New-EXCContactObject.ps1 functions to set on the pager on the contact. You'll of course need to pass the pager from the GAL for each user into the script; I'm not sure if the ExchangeOnline "Get-user" command includes the pager.

if ($PagerPhone -and $PagerPhone -ne "")
		{
			$Contact.PhoneNumbers[[Microsoft.Exchange.WebServices.Data.PhoneNumberKey]::Pager] = $Pager
		}

EWS Contact Phone Types Documentation: https://learn.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.phonenumberkey?view=exchange-ews-api

@DanielRonies
Copy link
Author

Good morning,

thanks for your answer.

The if that you indicate, we must add it in ps1 "Set-EXCContactObject" and "New-EXCContactObject", once this is done, where we indicate the "get" that you mention.

Thank you so much!!

@grahamr975
Copy link
Owner

@DanielRonies Sorry for the very late reply! By Get-User, I mean that in order to set the pager for a contact, you'd first need to fetch the pager value from the Office 365 GAL for each user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants