Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

REST API changing category of incidents

nehasr1288
Tera Expert

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.

1 ACCEPTED SOLUTION

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


View solution in original post

9 REPLIES 9

Thanks. Are you using the table API or the import set API?


TABLE API


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


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


nehasr1288
Tera Expert

thank you its working now..!!!