Skip to content

Commit

Permalink
Some error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Oct 15, 2024
1 parent 8282080 commit 39d1dd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Public/Sync-O365PersonalContact.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
}
# Lets get all contacts of given person and cache them
$ExistingContacts = Get-O365ExistingUserContacts -UserID $User -GuidPrefix $GuidPrefix -FolderName $FolderName

if ($ExistingContacts -eq $false) {
continue
}
$Actions = Sync-InternalO365PersonalContact -FolderInformation $FolderInformation -UserId $User -ExistingUsers $ExistingUsers -ExistingContacts $ExistingContacts -MemberTypes $MemberTypes -RequireEmailAddress:$RequireEmailAddress.IsPresent -GuidPrefix $GuidPrefix -WhatIf:$WhatIfPreference
if ($PassThru) {
$Actions
Expand Down

0 comments on commit 39d1dd3

Please sign in to comment.