How to identify the tool id in Devops tool is correct or not using Rest API explorer

Hitesh_Mourya
Tera Guru

we need to identify the tool ID in Devops change velocity integration and check in Rest API explorer can any one please suggest what are the steps to identify tool ID and verify it

2 ACCEPTED SOLUTIONS

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Looking at the [sn_devops_tool] table, there's no individual "ID" column other than the SysID.

Same goes for the [sn_devops_tool_integration] table.

 

Not sure what you're really asking or what the required outcome is.

 

If helpful or correct, please indicate so!

View solution in original post

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Ah, I see. I see on https://docs.servicenow.com/bundle/utah-api-reference/page/integrate/inbound-rest/concept/devops-api... that the toolid is the sys_id of the relevant record from [sn_devops_orchestration_tool].

 

The error message you see however might be related to something else.

Looking at the examples here I see there's another parameter "tooltype" that is of type string, as an example "Jenkins" or similar.

 

If that doesn't help, look deeper into the logs to see if you can find more info.

 

If helpful or correct, please indicate so!

View solution in original post

5 REPLIES 5

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Looking at the [sn_devops_tool] table, there's no individual "ID" column other than the SysID.

Same goes for the [sn_devops_tool_integration] table.

 

Not sure what you're really asking or what the required outcome is.

 

If helpful or correct, please indicate so!

To verify the tool is perfectly connected or not with azure side we need tool id right so it the same tool id which is created when we configure webhook but when I am checking there in workspace I didn't found any tool ID

Hitesh_Mourya_0-1718090135934.png

 

 

 

sureshloganath1
Tera Contributor

Hi, The issue persist in my end. I configured Tool ID and prepared payload as {"description": "test"} and sent it from REST API Explorer. but getting an error like below. Im not sure where I'm doing a mistake. It's simple mapping. Can you please help how to resolve the issue.

Step-1:

sureshloganath1_0-1718090618882.png

 

Step-2

sureshloganath1_1-1718090676511.png

Posted the transaction and received the response as below.

 

 

sureshloganath1_3-1718090750854.png

 

Regards,

Suresh

MattiasJonsson
ServiceNow Employee
ServiceNow Employee

Ah, I see. I see on https://docs.servicenow.com/bundle/utah-api-reference/page/integrate/inbound-rest/concept/devops-api... that the toolid is the sys_id of the relevant record from [sn_devops_orchestration_tool].

 

The error message you see however might be related to something else.

Looking at the examples here I see there's another parameter "tooltype" that is of type string, as an example "Jenkins" or similar.

 

If that doesn't help, look deeper into the logs to see if you can find more info.

 

If helpful or correct, please indicate so!