Can not get complex relations from api call
Dear Data Citizens,
I have the following problem. I’m trying to get all complex relations from the Java Core Api. I tried to use the complexRelationApi.findComplexRelationIdsWithTargetAsset(UUID asset, UUID legType, UUID complexRelationType) method but it doesn’t work.
I double checked everything, I’m using the correct assetId, legTypeId and complexRelationTypeId but I get 0 return values (checked it with the size method). I also do not get any errors when using the workflow. And ofcourse I also have a complex relation with the given asset (the restAPI can find it).
Does somebody have an idea what I’m doing wrong?
Sincerley,
Stefan
stefan_busch
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
7 comments
arthurburkhardt
·3 years ago · EditedThe documentation is incorrect. Instead of the leg type ID, you should pass the relation type ID of that leg type.
So, instead of passing
1af54725-2751-40d9-b7d3-6fc38e7d1f57, try passinge2b405e3-8480-42d6-a50b-c7c360375821instead.arthurburkhardt
·3 years ago · EditedThe documentation is incorrect. Instead of the leg type ID, you should pass the relation type ID of that leg type.
So, instead of passing
1af54725-2751-40d9-b7d3-6fc38e7d1f57, try passinge2b405e3-8480-42d6-a50b-c7c360375821instead.stefan_busch
OP3 years ago · EditedThank you very much Arthur!!!
arthurburkhardt
·3 years ago · EditedNever tried with the
findComplexRelationIdsWithTargetAssetmethod, but here’s one that works.arthurburkhardt
·3 years ago · EditedNever tried with the
findComplexRelationIdsWithTargetAssetmethod, but here’s one that works.stefan_busch
OP3 years ago · EditedHi Arthur,
yeah I ended up using that one but the other function would be very interesting to get it to work as you can specify the leg type.
Sincerely,
Stefan
Alexandra Jorgenson
Admin3 years ago · Edited@stefan.busch, hopefully others in the community but will chime in but in the meantime, If you haven’t already, this would be a good candidate for submission to our Support Portal. When submitting, I would reference the URL of this thread.