Skip to Content
0
Former Member
Nov 10, 2014 at 03:17 PM

Move items between opportunities

36 Views

Hello,

recently I need to realize a functionality to move a item from opportunity A to opportunity B. Opp. A has process type ZPT1, Opp. B has process type ZPT2.

I checked those possibilities:

a) use the BOL entity method copyItems für BTItem -> doesn't work as it copies an item within the same opp only

b) create related entity in opp B and move the item attributes to the newly created item -> doesn't work as I also like to move all related entities of the item from opp. A to opp. B.

c) simply change the parent GUID on DB level -> I a quite dirty way and I doubt if this works at all

Has somebody a hint how to realize such a "move" of an item from one opp to another? It would also be ok to create a new item in opp B and move the complete entity structure from opp A item, if this is possible.

Would be great if somebody had an idea!

Thanks and best regards,

Markus