locked
Merge contacts but skip custom entity references RRS feed

  • Question

  • Hello all.

    I would like to know if there is some way to prevent some entities to be modified while merging contatcs.

    The N:1 relationship does not allow me to edit the Merge Cascading behaviour. The records will always merged to the new account while my customer want's me to merge only certain entities and not all relationships.

    Thanks!

    Boudewijn


    Friday, September 12, 2014 4:00 PM

Answers

  • Alright I figured it out my self :)

    I have created a pugin that runs at the update message in pre-operation stage and removes all related contact entityreferences from the target entity.

    That did the trick!

    Monday, September 15, 2014 12:19 PM

All replies

  • Boudewijn,

    out of the box, there is no way you could do it. But you could register a merge plugin and remove the attributes that you do not wish to be updated from the collection.

    regards

    Jithesh

    Saturday, September 13, 2014 1:26 AM
  • Is there some (hidden) way to discard relationships in a plugin?
    Sunday, September 14, 2014 6:56 PM
  • Alright I figured it out my self :)

    I have created a pugin that runs at the update message in pre-operation stage and removes all related contact entityreferences from the target entity.

    That did the trick!

    Monday, September 15, 2014 12:19 PM