I want to access via API rest to release management capabilities (create, update and modify release) to connect with TFS or VSTS

nicolasa_
Kilo Explorer
4 REPLIES 4

Rajesh Mushke
Mega Sage
Mega Sage

Hello Nicolas,



you can use Web Services,



Please Refer :


http://wiki.servicenow.com/index.php?title=Table_API#GET_.2Fapi.2Fnow.2Fv1.2Ftable.2F.28tableName.29...



Use the ServiceNow Table API to perform create, read, update, and delete (CRUD) operations on existing tables. This API is available starting with the Eureka release.


All URIs used by the Table API are relative to /api/. The URIs use the following formats:


/api/now/table/(tableName)
/api/now/v1/table/(tableName)
/api/now/v1/table/(tableName)/(sys_id)

In these URIs:


(tableName) is the table on which the action is performed.
(sys_id) is the sys_id of the record on which the action is performed.
Note
Note: The Getting Started with REST page provides a scenario-based example for using the Table API.


Security

Access to tables via the REST API is restricted by BasicAuth and the rest_service role. ACLs defined for tables are enforced to restrict access to data.


To allow access to tables without any authentication and authorization, add the table name to sys_public.list. ACLs defined on tables are still enforced, and it is the customer's responsibility to deactivate ACLs on tables.


Table Access

All tables, including base system tables, global tables, and scoped tables are accessible via web services by default. You must fulfill any other web service security requirements, such as basic authentication and ACLs to access tables via web services.


You can control direct web service access to tables using the Allow access to this table via web services check box on the table Application Access settings. This check box must be selected to allow web service interaction with the table.


Note
Note: The application access fields controlling CRUD operations, such as Can read or Can create do not apply to web service requests.


Method Summary

HTTP Action + URIDescription
GET /api/now/v1/table/(tableName)Retrieves records for the specified table.
POST /api/now/v1/table/(tableName)Creates a record in the specified table.
GET /api/now/v1/table/(tableName)/(sys_id)Retrieves the specified record from the specified table.
PUT /api/now/v1/table/(tableName)/(sys_id)Updates the specified record with the request body.
PATCH /api/now/v1/table/(tableName)/(sys_id)Updates the specified record with the request body.
DELETE /api/now/v1/table/(tableName)/(sys_id)Deletes the specified record from the specified table.






Using the REST API Explorer

Access the REST API Explorer by navigating to System Web Services > REST API Explorer.



The Request Headers and Path Parameters sections appear for all requests. Other sections may appear depending on the selected API and method.


The API and Method

The choice lists at the top of the REST API Explorer allow you to select an API, such as the Table API, Aggregate API, or Import Set API, and an API version.


Links that appear below these choice lists display available methods for the selected API and version, such as the GET method for the Table API. Each method includes a brief description of the action that method performs. The REST API Explorer displays a sample endpoint and certain Request Elements based on the selected API and method.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here: Table API - GET




Visit http://docs.servicenow.com for the latest product documentation


tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Nicolas,


There is some info here on the REST api exposed by VSTS and TFS


REST API Overview for Visual Studio Team Services and Team Foundation Server



You could refer here for info on ServiceNow outbound rest.


Outbound REST web service


..


ServiceNow outbound REST functionality allows you to retrieve, create, update, or delete data on a web services server that supports the REST architecture.


A REST message can be sent by a REST workflow activity or by using the RESTMessageV2 script API. You can run REST messages from a MID Server which allows the message to communicate with REST providers on an internal network.


The above info is relevant to pushing data from ServiceNow to VSTS and TFS   - is that what you plan to do?


Did you have something additional to that in mind?


If the reply was informational, please like, mark as helpful or mark as correct!



Rajesh Mushke
Mega Sage
Mega Sage

Hello Nicolas AUDET




would you mind Please close this thread. or else let me know if you need more help.



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Visit How To Mark Answers Correct From Community Inbox





Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke