- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 05:55 PM
On the incident endpoint of the REST api, you can set and retrieve the "contact_type" attribute.
What endpoint do you have to go to, to retrieve a list of what the contact types are?
Thanks.
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 06:45 PM
Hi
that is a tricky topic since contact_type - just like many others - is a selection field. And only reading the values from the sys_choice table is not enough, as OOTB and due to lacking its own values the incident table inherit its values from the task table.
My recommendation is to provide the consumer with the list of allowed values instead of asking other tables for the list of allowed values. This also reduced the number of requests at your instance.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 06:45 PM
Hi
that is a tricky topic since contact_type - just like many others - is a selection field. And only reading the values from the sys_choice table is not enough, as OOTB and due to lacking its own values the incident table inherit its values from the task table.
My recommendation is to provide the consumer with the list of allowed values instead of asking other tables for the list of allowed values. This also reduced the number of requests at your instance.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 07:31 PM
Hi Maik
That's really helpful - can the same be said of Status, Impact and Urgency? The lists there can also not be easily retrieved?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 07:35 PM
Hi
yes, exactly.
Kind regards
Maik