How to get Dependent CI details using soap using java.
I have one ci name and I need to get the dependent CI details of this CI. How can I get the related CI details. Can you please help me on this.
You can use the doSelect method against the bmhier object.
Hi Lindsay, thanks for the information. Can you please provide me the sample code for doSelect() method. I mean how/what parameters pass to this like what is the where clause I need to give here. I'm very new to this implementation.
When I try like below, I got the error.
String whereClause = "name like '%new virtual ci iimss%'";
int maxRows = 2;
ArrayOfString attributes3 = new ArrayOfString();
String id = usd.doSelect(sid, "bmhier", whereClause, maxRows, attributes3);
Hi Lindsay, Thanks I resolved the issue by putting child or parent in where condition and able to get the related ci details using doSelect().
In addition to Lindsay_Estabrooks suggestion, you could possibly use the getRelatedList method as well. Apparently this method returns a list handle for list (QREL or BREL) attribute of an object.
P.S. I haven't tested this yet. Just thought of giving an alternative. Perhaps you can confirm if it works for you?
Tried with doSelect() and able to get the details.
Retrieving data ...