how to get the status of the ticket in servcienow api

Phanikanth
Kilo Contributor

I have servicenow api, which will give state filed ,I want to get the status of the ticket ,whether it is closed/pending through api.I need to get state filed instead of value displaying want to get ticket status.

find_real_file.png

9 REPLIES 9

Mark Roethof
Tera Patron
Tera Patron

Like you see, Ankur and Sandeep are confirming what I already mentioned. Give it a try.

If any further questions, let me know!

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hello Mark

 i am working a Servicenow - Mulesoft integration. I have successfully integrated to create an incident and request tickets through the REST api call.  And GET calls for created incidents using the INC number. However i am currently tasked with adding an endpoint to make a GET call for getting created REQ tickets. 

I went through the api documentation and tried it on the REST API Explorer. I managed to get an array of objects but the maximum i get is just 10. But what we are trying to do is trying to filter the REQ ticket by one of the fields in the table. In our case there is an account number field as one of the fields while creating the request ticket, so we want to use that when we want to check the status of the ticket.

So my question is, can we make any of the fields as the querying variable so we ca use the value of that field to get the ticket  or can we get more than 10 lists in the GET call and filter it with the account number ?

 

Thank You in advance!