CA Service Management

Expand all | Collapse all

How to get only assinged to me incidents using SOAP java API?

  • 1.  How to get only assinged to me incidents using SOAP java API?

    Posted 04-18-2017 06:57 AM

    Hi team,

     

    I had a requirement to get the incidents assigned to me and created by me using java soap api. I'm very new to this implementation. Can you please help me out on this. 

    Now I'm able to get he incident details by number as shown below.

     

    doQueryResult = usd.doQuery(sid, "in", "ref_num="inNUmber");

    But same way when I try for asigned to me   like

    doQueryResult = usd.doQuery(sid, "in", "assigne like 'MYname"); it is giving error..

    Can you please help me out on this to get incidents assigned to me.



  • 2.  Re: How to get only assinged to me incidents using SOAP java API?

    Posted 04-18-2017 07:46 AM

    The 'assignee' field is not a string field, but a UUID to a Contact record (where the name is). Try to use a query like:

    assignee.first_name like '%MYNAME%'



  • 3.  Re: How to get only assinged to me incidents using SOAP java API?

    Posted 04-18-2017 08:20 AM

    Adding to Cristi's reply, as you are more specific here about only incidents that are assigned to a particular user.

    For example you can refer to below screenshot for the 'ServiceDesk' user in my scenario:

     

    I hope this helps!

     

    Thanks

    Junaid



  • 4.  Re: How to get only assinged to me incidents using SOAP java API?

    Posted 04-18-2017 09:52 AM

    one comment...first_name and last_name are not unique so a better choice should be userid attribute,

    which is unique to the cnt object.