# Where to find Collection Name on.start

**URL:** <https://community.postman.com/t/where-to-find-collection-name-on-start/8640>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [October 29, 2019, 5:03pm UTC](https://community.postman.com/t/where-to-find-collection-name-on-start/8640 "2019-10-29T17:03:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jilllancaster](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@jilllancaster](https://community.postman.com/u/jilllancaster)\
**Post date:** [October 29, 2019, 5:03pm UTC](https://community.postman.com/t/where-to-find-collection-name-on-start/8640/1 "2019-10-29T17:03:27Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

I have a custom reporter set up and I would like to be able to retrieve the name of the Postman collection being run by newman, in the on.start event from within the custom reporter. Is this possible and if so, how?

Thanks,  
Jill

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 29, 2019, 5:22pm UTC](https://community.postman.com/t/where-to-find-collection-name-on-start/8640/2 "2019-10-29T17:22:27Z")

</div>

Hey Jill,

You could use either:

```
.on('beforeDone', function (err, arg) {
    console.log(arg.summary.collection.name);
});

.on('done', function (err, summary) {
    console.log(summary.collection.name);
})

```

The best way that I figure these things out is but just logging different parts of the events to the console and then expecting them to see what I can use.

```
.on('done', function (err, summary) {
    console.log(summary);
});

```

 ![51](https://us1.discourse-cdn.com/getpostman/original/3X/4/2/42d12765fae5a36f6ef7d8bfb4089f8f8cbc8e4c.png)

```
.on('done', function (err, summary) {
    console.log(summary.collection);
});

```

 ![40](https://us1.discourse-cdn.com/getpostman/original/2X/f/ffcd5e53fd751414ee73078504b9055f7d7689a3.png)

```
.on('done', function (err, summary) {
    console.log(summary.collection.name);
});

```

 ![22](https://us1.discourse-cdn.com/getpostman/original/3X/0/d/0db34762d1367f86341bac17a734135fc8d17767.png)

Normally, it’s a bit long-winded _just_ to get the answer but it helps me _know_ what’s getting returned in the events 🙂

---

<div class="post-metadata">

**Author:** ![jilllancaster](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@jilllancaster](https://community.postman.com/u/jilllancaster)\
**Post date:** [October 29, 2019, 5:49pm UTC](https://community.postman.com/t/where-to-find-collection-name-on-start/8640/3 "2019-10-29T17:49:34Z")

</div>

Danny,

Thanks. Can I assume by your answer that there is no way of getting the Collection Name in the “on.start” event? To do what I wanted to do, I needed to access that information at the start of an iteration. I had actually created separate scripts to log all the args and summary content on every one of the events to files so that I can do a look up for when the information is available. I did find the summary.collection.name on the on.done event, however, that did not work with my current setup. At this point I am guessing I will need to redesign a few things.

Thanks for the response,  
Jill
