Lock event fields during calendar synchronization#
Context Sync can prevent selected event fields from being updated during calendar synchronization. This helps preserve field values that should remain unchanged after an event is initially synchronized, while allowing other event information to continue syncing normally.
For standard Salesforce Events, field locking works in both synchronization directions between Salesforce and Microsoft 365. It can also apply to supported fields on custom Salesforce objects synchronized as Microsoft 365 calendar events.
Important
Event field locking affects synchronization updates only. It doesn’t affect field values when Context Sync initially creates an event in Salesforce or Microsoft 365.
How event field locking works#
When a field is locked, Context Sync doesn’t synchronize subsequent changes to that field between Salesforce and Microsoft 365:
Changes made to the field in Salesforce aren’t synchronized to Microsoft 365.
Changes made to the field in Microsoft 365 aren’t synchronized to Salesforce.
Other, non-locked fields of the event continue to synchronize normally.
For example, if the Location field is locked and a user changes both the location and subject of an existing event in Outlook, Context Sync doesn’t update the location in Salesforce but synchronizes the subject as usual.
If an update contains changes only to locked fields, Context Sync skips the update.
Field locking doesn’t prevent users from editing a field. It only prevents Context Sync from synchronizing changes to the field between Salesforce and Microsoft 365.
Conditional and unconditional field locking#
Context Sync supports conditional and unconditional field locking.
Conditional field locking#
A conditional lock applies only when a specified Salesforce field has a configured value. The field that determines whether the lock is active is called the trigger field.
For example, your organization may have a custom Salesforce checkbox that indicates that an event has been finalized. When the checkbox is selected, Context Sync can stop synchronizing changes to the event subject and a custom notes field.
When the condition isn’t met, the configured fields aren’t locked and synchronize normally.
A trigger field can also be configured as a locked field. When the lock is active, changes to that trigger field made in Outlook aren’t synchronized to Salesforce. To deactivate the lock, change the trigger field value in Salesforce.
Unconditional field locking#
An unconditional lock always prevents synchronization updates to the configured fields.
For example, Context Sync can be configured to prevent updates to the Location field after an event is initially synchronized.
When multiple locking rules apply#
Multiple locking rules can apply to the same event. Context Sync evaluates each rule independently. When multiple rules apply, all fields locked by those rules remain protected from synchronization updates.
For example, if one rule locks Subject and another applicable rule locks Location, both fields are protected from synchronization updates.
What happens when a field is unlocked#
When a conditional lock becomes inactive, the affected fields resume synchronization from the next applicable edit.
Context Sync doesn’t automatically reconcile differences created while a field was locked. However, a subsequent update to the event can cause an existing value from Salesforce or Microsoft 365 to be synchronized to the other system. As a result, values that differed while the lock was active may be overwritten after the field is unlocked.
Recurring events#
Context Sync treats a recurring series as one synchronized event for field-lock purposes. Changes to locked series fields aren’t synchronized, while other supported series and occurrence changes continue to sync normally.
Supported fields#
For the standard Salesforce Event object, field locking supports standard and custom fields and works in both synchronization directions between Salesforce and Microsoft 365.
Field locking also supports mapped fields on custom Salesforce objects synchronized as calendar events. These events currently synchronize in one direction, from Microsoft 365 to Salesforce.
Prerequisites#
To use event field locking:
Advanced Calendaring must be enabled in Salesforce.
Users must use Microsoft 365 with mailbox connectivity through Microsoft Graph.
Request event field locking#
Event field locking is available upon request and is configured by Revenue Grid Support. It can be configured at the organization, preset, profile, or individual user level.
For an unconditional lock, provide the Salesforce API names of the fields to lock.
For a conditional lock, provide:
The Salesforce API names of the fields to lock.
The Salesforce API name of the trigger field.
The trigger value that activates the lock.
Use the API names exactly as they appear on the Salesforce object.
Microsoft 365