# Reference error KEYUTIL not defined in prerequisit-script

**URL:** <https://community.postman.com/t/reference-error-keyutil-not-defined-in-prerequisit-script/34376>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [April 11, 2022, 3:50am UTC](https://community.postman.com/t/reference-error-keyutil-not-defined-in-prerequisit-script/34376 "2022-04-11T03:50:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dwarak001](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@Dwarak001](https://community.postman.com/u/Dwarak001)\
**Post date:** [April 11, 2022, 3:50am UTC](https://community.postman.com/t/reference-error-keyutil-not-defined-in-prerequisit-script/34376/1 "2022-04-11T03:50:25Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
I am running a collection with few calls I have a post request first to get an a signed API key and I use KEYUTIL to get a key in the prerequisite script which works in POSTMAN but not in Newman

_Details (like screenshots)_:

![image](https://us1.discourse-cdn.com/getpostman/original/2X/0/007a810c210fbb84a435d6e3bf9dd531cf5f48a2.png)

_How I found the problem_:  
by running the collection in newman

_I’ve already tried_:

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [April 11, 2022, 8:06am UTC](https://community.postman.com/t/reference-error-keyutil-not-defined-in-prerequisit-script/34376/2 "2022-04-11T08:06:28Z")

</div>

Hi @Dwarak001  
There isn’t very much information to go on here, but I would guess that it’s how the first call is setup.

Does it use global variables (or more specifically a variable declaration that isn’t being used in newman?)

You may find the variable scopes section below useful;

> **[Using variables | Postman Learning Center](https://learning.postman.com/docs/sending-requests/variables/#variable-scopes)**
>
> Using variables: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.
