Limit the Response Body in REST API Explorer

Pallavi65
Tera Contributor

Hello everyone,

 

I am using REST API Explorer module to test the integration.

I am selecting the table as Incident and using POST method to create a record in third party application.

So, I have added two fields Short description and Caller.

 

When I send that data, I am getting success but in the Response body I am getting all the other fields info also.

Can we limit the response body to send only Sys_id of the incident?

 

 

Regards,

Lucky

1 ACCEPTED SOLUTION

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Pallavi65 

 

sys param filed option on rest api explorer will help you limit it. you can specify which fields you want to send.

 

I hope this helps..


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

2 REPLIES 2

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Pallavi65 

 

sys param filed option on rest api explorer will help you limit it. you can specify which fields you want to send.

 

I hope this helps..


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Abhishek_Thakur
Mega Sage

Hi Pallavi,

Yes, you can limit the field with the help of sysparm_fields. Below is the screenshot that will help you to get the expected result.

limit the fields in integration.png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.