Hi there,
I have an XML file that contains users and for each of those users one or multiple addresses. I initially built a task that would import users and addresses in one go. However, I discovered that this would not delete old address records from a user so if they moved they would end up with multiple addresses. I then separated the users and addresses in two separate tasks but now hit another roadblock: how do I tell which user ID belongs to the address? I see two options, but neither works:
1. When creating the user, assign ExternalID a value but leave UserID alone. This caused Dynamicweb to generate the ID automatically. This doesn't work as I don't know what the user's ID is when inserting the address.
2. When creating the user, assign UserID a value with the external ID from my XML source. Then I can use that ID to associate the address with. That won't work either, as I could have (in fact, already do have) conflicts in IDs. The customer's XML contains a user with ID 1 as well, so I just wiped out the angel account ;-(
What are my options? Looks like this could use something we have with products where we can reference a product by something other than the ID alone.
Ideas are very welcome!
Thanks,
Imar