Skip to main content

Hi all, 

I am trying to reference an incident (Event) in ETM via the Event Ref and Event Type field (I cannot use the Event ID) but ETM keeps throwing an error …
 

The database and the wiki appear to show the int 4 as a valid value. The domain model refers to getEventTypeEnum. 

Can anyone tell me what is causing this error?
Thanks!

Trevor

Hi,

This question seems to be in the wrong community, and I stumbled upon it by accident.

I hope you got help elsewhere, but I’ll answer it just in case you didn’t, or in case someone else stumbles upon this question later.

The reason you didn’t get any results is most likely due to a misunderstanding. Your screenshot shows Event Type, which is an integer in an assystREST result. But if you look to the right in the dropdwon, it says eventTypeEnum, which is what ETM expects and uses to perform the lookup.

Given only that it’s Event Type 4 in your example I’m not sure if you’re trying to do a lookup for a service request, change, or order, but "CHANGE""SERVICEREQUEST", or "ORDER" should all work when entered into an Expression Type: JavaScript datamapper field.

You should also be able to view the available options at the bottom of the events RAML:

 

assystREST/v2/events/raml/1.0/?showDetail=true

queryParameters

eventTypeEnum:
enum: EINCIDENT, CHANGE, PROBLEM, NORMALTASK, DECISIONTASK, AUTHORISATIONTASK, SERVICEREQUEST, ORDER, EMPTY]
required: false

 

Hope this helps

Best regards,
Richard