Skip to main content
Solved

ETM - Fetch Open Events based on Assigned User

  • Jun 23, 2023 2:39 AM UTC
  • 4 replies
  • 144 views

Forum|alt.badge.img+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.

Best answer by SGrant89

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

View original

4 replies

Forum|alt.badge.img+14

Hello Manish,

How did you configure the channel?

Kind Regards,

Caroline


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • Jun 30, 2023 4:14 PM UTC

Hi Caroline,

Resource is “Event” in Configuration too.

Thanks & Regards,

Manish Verma


SGrant89
Hero (Employee)
Forum|alt.badge.img+7
  • Hero (Employee)
  • Answer
  • Jul 10, 2023 8:58 AM UTC

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


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • Jul 10, 2023 10:03 PM UTC

Thank you @SGrant89 for solving the problem :)