We are trying to change the primary address reference for customer records by pointing towards an existing address id. We also want to delete the defunct address id reference against the customer.
We are able to create a new record pointing to an existing address id, and make it primary. What we are having trouble with is deleting the old record.
Any assistance would be appreciated.
<root
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email="" alias="">
<state bc_name="customer_request">
<action name="data">
<main>
<row number="1">
<company_id>{company_id}</company_id>
</row>
</main>
<address_xref>
<row>
<is_primary>Y</is_primary>
<address_id>{new_address_id}</address_id>
</row>
<row delete="true">
<address_id>{old_address_id}</address_id>
</row>
</address_xref>
</action>
</state>
</session>
</root>