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.
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%'
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!
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.