# Importing collection in nodejs via collections sdk

**URL:** <https://community.postman.com/t/importing-collection-in-nodejs-via-collections-sdk/27539>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [September 7, 2021, 2:44am UTC](https://community.postman.com/t/importing-collection-in-nodejs-via-collections-sdk/27539 "2021-09-07T02:44:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nalin.agrawal11](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@nalin.agrawal11](https://community.postman.com/u/nalin.agrawal11)\
**Post date:** [September 7, 2021, 2:44am UTC](https://community.postman.com/t/importing-collection-in-nodejs-via-collections-sdk/27539/1 "2021-09-07T02:44:20Z")

</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).

Has anyone been able to import a json received from postman rest api into a collections sdk?

I have a nodejs webapp, where I receive a postman collection and workspace Id. I use it to fetch collection json via postman rest endpoints. I then use that json to create a Collections javascript object via collections sdk. Idea is to be able to use functions provided by sdk, and later execute those collections object via newman.

I keep facing problems because after import collection object is always empty. It does not have “Items” object populated.

More details here - [Collections sdk always shows empty Item object when importing from JSON](https://community.postman.com/t/collections-sdk-always-shows-empty-item-object-when-importing-from-json/27380)

Any help is much appreciated. Thanks.
