Skip to main content
Solved

ETM - Fetch Open Events based on Assigned User


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
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+13

Hello Manish,

How did you configure the channel?

Kind Regards,

Caroline


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • June 30, 2023

Hi Caroline,

Resource is “Event” in Configuration too.

Thanks & Regards,

Manish Verma


SGrant89
Hero (Employee)
Forum|alt.badge.img+6
  • Hero (Employee)
  • 22 replies
  • Answer
  • July 10, 2023

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)
  • 20 replies
  • July 10, 2023

Thank you @SGrant89 for solving the problem :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings