Limit the response window for large queries to a couple of fields

Hi, long time listener but first-time caller :slight_smile:
We need to query Datadog for some specific user information in our organisation. It returns a lot of data that we don’t need and spend time combing through to get the fields we’re interested in. For example, I only need the id and email field out of the 100 that comes back.
Is there a way to limit the response window to only display those two fields or are we limited to output it to the console?
Kind regards
Sam

Probably a query that someone from Postman can answer with more authority.

But usually the response is just that, the unaltered response.

If you want to limit the results, I would use a JavaScript filter function and then console log it.

You also have Lodash available as a library in the Postman Sandbox, so you could use the pick function from that library.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.