I have a similar problem, setting up a relationship using the Java wsdl generated api.
I use the SOAP set_entry to create two record in two of my modules, which have a 1-n relationship. The call is successful and creates the record in the database.
I use set_relationship to create the relationship between the two records and the call succeeds and creates a record in the correlation database table.
Yet, Sugar doesn't see the association and a query to the parent record asking for linkfields doesn't return any relations.
If however I create the record in Sugar, the query using the link field has no problem finding the association.
This is puzzling since I can see the proper ida/idb record in the correlated tables in MySQL.
I've tried repair as well.
Does anyone have any suggestion ?
Thanks.
J.D.
Code:
New_set_entry_result result = client.set_entry(sessionId, Constants.ticketsModule, nvl);
String[] ids = new String[1];
ids[0] = result.getId();
client.set_relationship(sessionId, Constants.satelliteModule, gt_satellite_id, "is3_ticket_is3_satellite", ids, null, 0);
Bookmarks