- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:13 AM
when I am raising an incident through REST API,in case I enter a wrong value for category field(which is a drop down field containing options like software,hardware etc.),this wrong value gets added to the choices.Please check the screenshot.I don`t want this wrong entry to make changes to my choice field.
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
-
Studio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:43 AM
While I don't know why the table API is doing that - it doesn't seem right to me (at first...)
Have you tried using the import set API and creating a transform map? I know there is a field called Choice Action that you can set to Create, Ignore, or Reject.
http://wiki.servicenow.com/index.php?title=Creating_New_Transform_Maps#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:23 AM
Thanks. Are you using the table API or the import set API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:29 AM
TABLE API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:43 AM
While I don't know why the table API is doing that - it doesn't seem right to me (at first...)
Have you tried using the import set API and creating a transform map? I know there is a field called Choice Action that you can set to Create, Ignore, or Reject.
http://wiki.servicenow.com/index.php?title=Creating_New_Transform_Maps#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:55 AM
Hi,
To prevent adding category options using a direct API, you can add an ACL on incident.category field (create or write).
I suggest you use import set API as this gives you further control as Chuck has mentioned.
Thanks
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 05:57 AM
thank you its working now..!!!