CA Service Management

  • 1.  How to get related CI Details.

    Posted Oct 25, 2016 02:07 AM

    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.



  • 2.  Re: How to get related CI Details.
    Best Answer

    Posted Oct 25, 2016 11:31 AM

    You can use the doSelect method against the bmhier object.



  • 3.  Re: How to get related CI Details.

    Posted Oct 26, 2016 01:51 AM

    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();

    attributes3.setString(new String[0]);

     String id = usd.doSelect(sid, "bmhier", whereClause, maxRows, attributes3);



  • 4.  Re: How to get related CI Details.

    Posted Oct 26, 2016 03:19 AM

    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().



  • 5.  Re: How to get related CI Details.

    Posted Oct 25, 2016 04:19 PM

    Hi Balakrishna,

     

    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?

     

    Kind Regards,

    Brian



  • 6.  Re: How to get related CI Details.

    Posted Oct 26, 2016 03:20 AM

    Hi Brian,

     

    Tried with doSelect() and able to get the details.