# Postman script is not working newman

**URL:** <https://community.postman.com/t/postman-script-is-not-working-newman/60273>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [April 24, 2024, 10:33am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273 "2024-04-24T10:33:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeswariramar](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rajeswariramar](https://community.postman.com/u/rajeswariramar)\
**Post date:** [April 24, 2024, 10:33am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/1 "2024-04-24T10:33:40Z")

</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 am using this scipt to get the location path of folders of a collection.

Able to get the path details with this script in postman but not working in newman

pm.execution.location

![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/d/eda8145644f778e7ddeada2abd37c912983c36c4.png)

---

<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:** [April 24, 2024, 11:35am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/2 "2024-04-24T11:35:10Z")

</div>

As mentioned in the other thread.

Not sure if that feature is available in Newman yet.

It’s fairly new.

I suspect someone from Postman will be able to confirm.

---

<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:** [April 24, 2024, 11:45am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/3 "2024-04-24T11:45:40Z")

</div>

It was added in 6.1.0.

> <https://github.com/postmanlabs/newman/blob/develop/CHANGELOG.yaml>

---

<div class="post-metadata">

**Author:** ![rajeswariramar](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rajeswariramar](https://community.postman.com/u/rajeswariramar)\
**Post date:** [April 24, 2024, 11:46am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/4 "2024-04-24T11:46:08Z")

</div>

@michaelderekjones Thanks for your reply…  
Tried after newman version updation.  
It is working fine in newman version(6.1.2)

---

<div class="post-metadata">

**Author:** ![rajeswariramar](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rajeswariramar](https://community.postman.com/u/rajeswariramar)\
**Post date:** [April 24, 2024, 11:47am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/5 "2024-04-24T11:47:15Z")

</div>

@danny-dainton Thank for you reply.Tried after version updation.  
Working fine with newman version(6.1.2)

---

<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:** [May 24, 2024, 11:47am UTC](https://community.postman.com/t/postman-script-is-not-working-newman/60273/6 "2024-05-24T11:47:17Z")

</div>

Closed on May 24, 2024, 11:47am UTC

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