# Create data file Day 10 of 15days

**URL:** <https://community.postman.com/t/create-data-file-day-10-of-15days/50213>\
**Category:** Help Hub\
**Created:** [August 2, 2023, 9:10pm UTC](https://community.postman.com/t/create-data-file-day-10-of-15days/50213 "2023-08-02T21:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edtovara](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/edtovara/32/16258_2.png) [@Edtovara](https://community.postman.com/u/Edtovara)\
**Post date:** [August 2, 2023, 9:10pm UTC](https://community.postman.com/t/create-data-file-day-10-of-15days/50213/1 "2023-08-02T21:10:52Z")

</div>

day 10  
Create data file

In the activity you request to create a data file, please can you inform us if this file has any specific format and if the data it should contain is

Params  
Key, Value  
testData, {{$randomCatchPhrase}}

Body  
“Animal” : {{$randomAnimalsImage}}

Test  
pm.variables.replaceIn(‘{{$randomColor}}’)

console.log(pm.variables.replaceIn(‘{{$randomColor}}’));

pm.test(“Status code is 200”, function () {

pm.response.to.have.status(200);

});

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [August 3, 2023, 10:32am UTC](https://community.postman.com/t/create-data-file-day-10-of-15days/50213/2 "2023-08-03T10:32:44Z")

</div>

The first request has the random variables, catch phrase and animal and is not using a data file.

The second request uses the data file. (“httpbin with file”).

The code you have provided is for the first request.

Hint: There are two variables that you need to include in your data file.

Your data file can be a CSV.

The documentation for the course has a link to a Postman blog on how to use data files, and also a video.

Part of the training for this exercise is for you to read and understand the available resources. Not just tell you how to setup the data file.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 1, 2023, 10:33am UTC](https://community.postman.com/t/create-data-file-day-10-of-15days/50213/3 "2023-11-01T10:33:34Z")

</div>

Closed on November 1, 2023, 10:33am UTC

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