REST API and sys_choice table

richardd_
Kilo Contributor

Hello 

I need to create a REST API WebService to GET records from the sys_choice table but I'm unable to do it.

Even with admin rights using the REST API Explorer module when I try to fulfill the tableName, I don't see this table.

Could you please help me ?

 

2 REPLIES 2

ggg
Giga Guru

just tried and it does not display.

I think you may have to write a script to get sys_choice values.

Chalan B L
Giga Guru

Hello Richard,

 

https://community.servicenow.com/community?id=community_question&sys_id=432643a1db1cdbc01dcaf3231f96...

Check out the above link

https://dev.service-now.com/api/now/table/sys_choice?sysparm_query=name%3Dalm_asset&sysparm_fields=n...

 

the above API worked

Mark the answer as correct and helpful if it helped..!!

 

Regards,

Chalan