Solved

ETM - Fetch Open Events based on Assigned User

  • 23 June 2023
  • 4 replies
  • 81 views

Userlevel 2
Badge +7

We have requirement to fetch all Open Events for a particular Assigned User.

We have created an ETM channel but it is always giving empty list.

icon

Best answer by SGrant89 10 July 2023, 10:58

View original

4 replies

Userlevel 3
Badge +12

Hello Manish,

How did you configure the channel?

Kind Regards,

Caroline

Userlevel 2
Badge +7

Hi Caroline,

Resource is “Event” in Configuration too.

Thanks & Regards,

Manish Verma

Userlevel 3
Badge +6

Hi Manish,

When searching for events, the minimum criteria required are Event Type and Event Status. If any of these are missing, then the search will return 0 results.

Above is an example variable assyst search which will return a list of open Incidents which are currently assigned to the provided user. In your datamapper, you could set up multiple searches for different event types. The possible values for Event Type (Taken from the assystREST resource schema) are:

<xs:simpleType name="eventTypesEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="INCIDENT"/>
<xs:enumeration value="CHANGE"/>
<xs:enumeration value="PROBLEM"/>
<xs:enumeration value="NORMALTASK"/>
<xs:enumeration value="DECISIONTASK"/>
<xs:enumeration value="AUTHORISATIONTASK"/>
<xs:enumeration value="SERVICEREQUEST"/>
<xs:enumeration value="ORDER"/>
</xs:restriction>
</xs:simpleType>

Kind regards,

Stephen

Userlevel 2
Badge +7

Thank you @SGrant89 for solving the problem :)

Reply