Reputation: 608
We have a big masterdata pool of customers. With group references.
Customer "key1" is in groups "G2 and G3" (using the tag).
How can I change this references if for instance now I need customer to be in "G1 and G4" instead of "G2 and G3".
Edit Let's assume this is how I created the masterdata plus references:
<masterdataPoolUpdate pool="P1">
<update key="key1" group="G2"><description>key1Desc</description>
</update>
<reference key="key1" group="G3" />
</masterdataPoolUpdate>
Upvotes: 0
Views: 94
Reputation: 608
Ok I think I managed to figure it ... first I need to remove the original entry in G2 (and also the reference). Then I need to create the entry in G1 or G4 and add a new reference accordingly:
<masterdataPoolUpdate pool="P1">
<delete key="key1" /> <!-- delete key1 and its references -->
<update key="key1" group="G1"><description>key1Desc</description></update>
<reference key="key1" group="G4" />
</masterdataPoolUpdate>
Upvotes: 1
Reputation: 81
Step 1: send two new updates to enhance the reference on this groups named G1 and G4. The customer will now have access on this groups.
Step 2: remove the reference for the customer of group G2 and G3 by sending two deletes
Upvotes: 0