Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit b01013b

Browse files
committed
Merge branch 'release/3.0.9rc3'
2 parents a2f7283 + eb3d4b3 commit b01013b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

SuiteCRMAddIn/BusinessLogic/AppointmentSyncing.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,15 @@ private bool TryAddRecipientInModule(string moduleName, string meetingId, Outloo
362362
/// <returns>True if it's offered to us by CRM with its Outlook ID already populated.</returns>
363363
protected override bool ShouldAddOrUpdateItemFromCrmToOutlook(Outlook.MAPIFolder folder, string crmType, EntryValue crmItem)
364364
{
365+
var outlookId = crmItem.GetValueAsString("outlook_id");
365366
/* we're good if it's a meeting... */
366367
bool result = crmType == this.DefaultCrmModule;
367368
/* provided it doesn't already have an Outlook id */
368-
result &= string.IsNullOrWhiteSpace(crmItem.GetValueAsString("outlook_id"));
369-
/* and we're also good if it's an appointment. */
369+
result &= string.IsNullOrWhiteSpace(outlookId);
370+
/* and we're also good if it's an appointment; */
370371
result |= crmType == AppointmentSyncing.AltCrmModule;
372+
/* and we're also good if we've already got it */
373+
result |= (this.GetExistingSyncState(crmItem) != null);
371374

372375
if (!result)
373376
{

0 commit comments

Comments
 (0)