Skip to main content

hello,

I am need of searching for specific action types for a specific event and I cannot get the syntax right for specifying “action type”.   Any help on what is correct syntax and value for searching for actions of a certain action type, is greatly appreciated.

 

Action Type for “ASSIGN” is of greatest interest

 

I can query for all actions for a specific event without issue:

 

but I cannot filter it down for specific “action types”:


 

This might not be possible.

The RAML (assystREST/v2/RAML I think) lists all of the query parameters available for each REST resource. 

 

If it did exist I would expect it to be something like &actionTypeId=1 (as query parameters usually work by id, not shortcode or name)


I have tried both short code and Id with no luck.   beyond frustrating, the lack of consistency with this API (sorry had to vent)

 

 


I have tried both short code and Id with no luck.   beyond frustrating, the lack of consistency with this API (sorry had to vent)

 

 

Hi ​@VT_VKOLB 

I understand the frustration, but i believe i might have the solution you need. 

Given the eventId in the screenshot you provided, could you try the following query?

/assystREST/v2/events/7647/actionsOfType/1

This should work, as it's listed in the Events RAML documentation:

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

Let me know if this resolves your issue.

 

As for retrieving multiple action types in a single request, it doesn’t appear that this endpoint supports listing several IDs directly as there does not seem to be a actionTypeId queryparameter on this endpoint, and assystREST/v2/events/{eventId}/actionsOfType/?actionTypeId=1,5 does not work (This was tested in 24R2 SU3) 

 

However, a possible workaround for such a need could be to use field expansion and filtering on the event endpoint itself to retrieve all actions, then manually filter the results on your end. For example:

assystREST/v2/events/7647/?fields=tformattedReference],actionsfrichRemarks,actionTypem]]

This would return the event along with its actions, including their types and remarks, which you could then process as needed.

Hope this helps!


Reply