CA Service Management

  • 1.  Changing UpdateObject WebService

    Posted Mar 01, 2017 09:59 AM
    Hello ,  We are using updateObject Web Service in our environment. But Group updation in Call_req table is happening using ID value of Group.  Is there any option to change the configuration so that We can pass the group name rather than ID Value of Group.  Regards Mayur


  • 2.  Re: Changing UpdateObject WebService

    Posted Mar 01, 2017 10:07 AM

    Every SREL update via "updateObject" will use the id. It's the foreign key. So the short answer is NO.

     

     

    The long answer is : If you use PAM, create a custom operator that does the lookup with the name for you. If you use another programming language, you can always code a custom web service who does the lookup.

     

    Something like

    In house application doing customUpdateObject into -> custom webService that asks for name instead of ID. Will lookup for the id and call -> SDM webservice updateObject.



  • 3.  Re: Changing UpdateObject WebService

    Posted Mar 01, 2017 01:56 PM

    Hi Mayur,

     

    The value being used by the web services or any method to update any factory is dependent on how this was defined in the schema. For example, category on the Call_Req table is persid (pcat:xxxxx). So this cannot be altered.

     

    If you want to see what value will be used by when you update something you can simply run a bop_sinfo -dq <factory> command.

     

    Kind Regards,

    Brian



  • 4.  Re: Changing UpdateObject WebService

    Posted Mar 01, 2017 04:20 PM

    There is some relations that uses persistent_id and even other attributes e.g. Incident relation to status uses status code as key. You can also define your own spel methods that will use other attribute values to update relations. Those methods shall be defined on api object and can be called via callserver method.



  • 5.  Re: Changing UpdateObject WebService
    Best Answer

    Broadcom Employee
    Posted Mar 01, 2017 05:48 PM

    Mayur, please mark this question as answered as we discussed in the Support case that you would need to run the

    doSelect() with whereclause like "last_name='the-group-name'" and then parse the returned result to retrieve the group

    id and then pass the group handle as "cnt:id" to the updateObject(). Thanks _Chi