cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exclude Attribute from Synchronization programmatically.

Former Member
0 Likes
3,361

Is it possible to exclude an attribute from synchronization programmatically? So that I don't need to adjust the synchronization properties manually in hmc.

The attributes must not be synchronized through CMS Cockpit nor through hmc. Also the sync marker in CMS Cockpit must not change to red when changing that attribute.

In my case it's a Date and an Enum.


My ideas so far:

  • Outsource them with a relation and don't add that relation to cmscockpit-services.xml.

  • Extend SynchronizationService with a attribute blacklist.

I don't like that solutions. Is there a more straight forward way?

View Entire Topic
Former Member
0 Likes

Hello Christian, yes you can remove an attribute from synchronization by configuration only. See: https://wiki.hybris.com/display/release5/Synchronization+Guide#SynchronizationGuide-EditingSynchroni... point 5

Former Member
0 Likes

One more comment: The sync marker works on type level, not an attribute level, this can not be easily changed, you would need to modify the SyncTimestamp type and all the logic around it.

Former Member
0 Likes

That sounds bad... Then I'll have to use one of my other ideas.