Set the JSON body from an external JSON file in Postman

preview_player
Показать описание
In this short tutorial, I will show you how to get your entire JSON request body from an external file.

This can be particularly useful if you want to use different data-sets but keep the same request.
___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

👉 Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

___

// P L A Y L I S T S

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide

▸▸▸ JOIN the Postman User Group on Discord

▸▸▸ The OFFICIAL Postman community forum

▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.

___

// IMPRINT

---
Рекомендации по теме
Комментарии
Автор

👉 Want to learn more about Postman? Check my Postman online course.

vdespa
Автор

Best video on the subject, straightforward and educational

pedromonteiro
Автор

Thank you inmensely, with this tutorial I just finished an inmense ammount of data in seconds! without breaking my head doing things I did not know, really thank you

davidguerreroarciniegas
Автор

this is what I was looking for two days, new to all these and this video put me so ahead with my work. best one I have seen yet. got exactly what I was looking for

jaydeeplakhwani
Автор

Finally, thank you Jesus! I've been researching on this for the last 24 hours! The other methods out there was complicated for me and didn't give me what I wanted. The toObject was key for me in this tutorial. I will be using this step as part of my cutover work. Thank you Valentin, keep up the great work!

christina
Автор

it's pretty helpful, I recommend check it out

TheTreborMedia
Автор

Hi Valentina..
This is what I was looking for - feed a bunch of input requests from external file. 2 follow up questions:
1) I presume the same concept works for CSV input as well.. Maybe some twaeks to concert CSV to valid JSON; similar to JSON.Stringify you used in this video
2) If I were to run this using Newman CLI and save the responses to a file (another video of yours), how does the file selection part work in CLI (in PM, you select the external file from a folder)?

shankil
Автор

Thank you so much. This is valuable for me. I am getting error like this when I m trying to import json file,
Incorrect format
We don’t recognize/support this format.
Could you please tell me a solution for this?

wageeshardissanayake
Автор

Mr. Valentin Despa, You are awesome. I have subscribed to your Udemy courses as well. Thank you. Keep it up.

dnya
Автор

Thanks, Valentine! Your video helps as ussualy:)

victorgoltsov
Автор

You are amazing person!!! Such a great video!!!

martinapetrova
Автор

Hello Valentin. How can I get the text file or a base64 file just like this json file. Vould you please advise me on this?

janithdesilva
Автор

Thanks mr Despa, is there any way to use a text file inplace of a json file?

maheshbinayak
Автор

Thanks for sharing this video.

If in my Payload calling from external file, how to handle below scenario
{
"id":"{{externalOrderId}}",
"language": null,
"experience":2
}

shr
Автор

Hi @Valentin Despa, i have a question. How can i get the json file from my local to the body of the request for individual request?

kollaanvesh
Автор

Hello, I have downloaded latest postman desktop app and followed the steps in this video, but the request body is always null. is steps same in the desktop app also or something has changed recently?

techieboie
Автор

Can we use a data file for indvidual request rather than postman collection?

vinodpasi
Автор

If the use the above mentioned Pre-Request only Object is being passed and am getting 400 error. My payload is enclosed within a List how can i read it as List. Kindly could you pls tell me the function to convert to List as well.
my payload example:
[
{
"appcode": "value",
.
.
.
}
]

honeyclementina
Автор

not working. can't set the request body.

Ankit-iqic
Автор

Thanks for this tutorial. So If I have a query param in my post that value has to be populated from my json data, how can I set it

srivathsanrajagopal