Hello everyone I have rather interesting problem (at least for me) I have an REST endpoints which sends me data that looks like this
{
"user": {
"name": "demo",
"phones": [
"iPhone",
"Samsung"
],
"address": "address"
}
}
I have a corresponding java model (User has a list of group etc. really simple) The task is to send this data to salesforce using apache-camel while migrating single Entity (user) is quite simple and comes down to
from("direct:start")
.setHeader("Authorization", constant("Basic a2tkYl9zZnJlYWQ6a2tkYl9zZjg2NQ=="))
.to(MY_SOURCE)
.bean(UserProcessor.class, "process")
.to(SALESFORCE);
I can't figure out how to associate groups with user, since they are connceted through ID fields ( phone has user_id property ) which don't exist yet obviously because the migration process is still ongoing. Is there any way that I can migrate both things simultaneously?