Not able to access Table API URL

Yokesh
Kilo Guru

Hi All,

We have tried to access the below API from local browser.

https://<instance>/api/now/table/em_alert

We have the mentioned privileges evt_mgmt_admin, evt_mgmt_user, evt_mgmt_operator, web_service_admin, rest_api_explorer,rest_service, soap and itil role. Still no luck and getting the below error. Kindly advise what else require to get the output.

Browser Output :

=============

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<response/>
 
Regards
Yokesh
4 REPLIES 4

Michael de Boer
Giga Guru

Hi Yokesh,

What do you want to do?
When I go to that URL and log in with an admin account, i get the same message with an overview (XML format) of all the alerts.

Do you have any records in the table em_alert?

Regards,

Michael

Regards,
Michael

Please mark the suggestion as helpful/like, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided has resolved your query.

Derek Kitzelman
ServiceNow Employee
ServiceNow Employee

Yokesh,

Have you tried:  https://<instancename>.service-now.com/api/global/em/jsonv2 as per the following doc:

https://docs.servicenow.com/bundle/sandiego-it-operations-management/page/product/event-management/task/send-events-via-web-service.html#send-events-via-web-service

It has a sample json payload that you can test with Postman.

Regards,

Derek

Ravi9
ServiceNow Employee
ServiceNow Employee

if you just want to know and test the api , you should try from rest api explorer within Sn instance , much easier 

something like below , do note the highlighted area find_real_file.png

 

Richard Hine
Tera Guru
Tera Guru

Yokesh,

APIs aren't generally meant to be used with a browser, if you are using one, you will be invoking the HTTP GET method on the API. It looks to me that the API is working fine and the issue you are having is the browser.

Viewing the page source in the browser might show you more detail, but you really want to be using something like Postman or SOAP UI.

What are you trying to achieve accessing the endpoint using a browser?

Richard