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.

Creation/deletion tables with REST API

nadzeyay
Tera Contributor

Hi,

 

For the test purposes I need to create(and then remove) multiple tables via REST API.

Where can i read how to do that? 

 

Thank you in advance,

Nadzeya

3 REPLIES 3

pavani_paluri
Tera Guru
Tera Guru

Hi @nadzeyay ,

 

To create and delete tables in ServiceNow via REST API, you’ll need to use the Table API for record-level operations and the Metadata API for table-level definitions. However, creating or deleting entire tables via REST is not officially supported in standard Table API — you typically do this via scripting or Studio.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

Thank you for your response. 

 

Unfortunately I could not find a decent tutorials on the tools, you mentioned on the perspective of the tables creation.

Table API I see ( https://ven01515.service-now.com/$restapi.do?  Namespase: now , API name: Table API) it is CRUD on existing tables, it is good, but not suitable.

Can you please provide a link to the Metadata API ?   I can not find it anywhere. Can you please provide links to the scripting tutorials? I need to set up automation for the builds, no manual steps there can be used.

 

Thank you in advance,

Nadzeya

nadzeyay
Tera Contributor

Thank you for your response. 

 

Unfortunately I could not find a decent tutorials on the tools, you mentioned on the perspective of the tables creation.

Table API I see ( https://ven01515.service-now.com/$restapi.do?  Namespase: now , API name: Table API) it is CRUD on existing tables, it is good, but not suitable.

Can you please provide a link to the Metadata API ?   I can not find it anywhere. Can you please provide links to the scripting tutorials? I need to set up automation for the builds, no manual steps there can be used.

 

Thank you in advance,

Nadzeya