How do i create a table and columns using rest api?

Shruthi1
Kilo Explorer

How do i create a table using rest api in service now?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shruthi,

Why would you want to create table and columns using REST API?

It is not recommended

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Noah Drew
ServiceNow Employee
ServiceNow Employee

I agree with Ankur.

You should make a table in ServiceNow and you can add records to that Table using REST.

If you have a specific use case where you need to do this, take a look at this related post to help you out:

https://community.servicenow.com/community?id=community_question&sys_id=1ba5fc92db2923001089e15b8a96...

Hope that helps!

If it did, please mark as Helpful and consider marking as the Correct Answer to the question, thanks!

rajeshramasamy
ServiceNow Employee
ServiceNow Employee

yes

 

Use the Rest API Explorer select sys_db_object table then you can create

 

Method : POST

Endpoint : https://XXX.service-now.com/api/now/table/sys_db_object


https://xxxx.service-now.com/nav_to.do?uri=%2F$restapi.do