web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to create custo...
Power Automate
Answered

Unable to create custom connector from working Postman collection

(0) ShareShare
ReportReport
Posted on by 257

I'm trying to create a custom connector to access an API, however I cannot get it to work. I'm using Client credentials as the grant type.

In Postman I'm able to get the access token and make POST calls to this API but this does not work when trying to build the connector. 

 

There's an option to import a Postman collection when creating a custom connector but Power Apps/Automate requires this to be in v1 format, however, that's no longer supported by Postman (available formats are v2 or v2.1) 

 

Any suggestions on how to get this to work?

 

 

Categories:
I have the same question (0)
  • JohnMitchell Profile Picture
    6 on at

    I have exactly the same problem.  The ability to import a Postman collection effective no longer exists since you can't export the collection in V1 format in Postman.  C'mon Microsoft!  Anyone have any ideas?

  • Verified answer
    kierian Profile Picture
    Microsoft Employee on at

    Workarounds

    Option 1: Install an older version of Postman

    1. Uninstall current Postman version (8.0 or higher).
    2. Download and install version 7.0 or lower from here: https://learning.postman.com/docs/administration/upgrading-to-v8/#downloading-postman-v7
    3. Option to export to Collection v1 now exists.

    kierian_0-1618850458162.png

     

     

    Option 2: Convert from v2 to v1 with the Postman Collection Transformer

    1. If not already installed, install NodeJS (Node.js) or npm (npm | get npm (npmjs.com))
      1. Note: you can check installation by opening Command Prompt as Administrator on your computer and using the commands node -v and npm -v
    2. Open Command Prompt as Administrator on your computer
    3. Run the command to install the transformer: npm install -g postman-collection-transformer
    4. Convert the entire collection with the following command:

    postman-collection-transformer convert \

        --input ./v2-collection.json \

        --input-version 2.0.0 \

        --output ./v1-collection.json \

        --output-version 1.0.0 \

        --pretty \

        --overwrite

    Note:

    • “v2-collection.json” is the exported file in v2, replace with the name of your file, and provide the full file path;
    • “v1-collection.json” is the resulting file after the command, name it as you prefer; it will be created in the current folder you are in within CMD, if you want it in a separate location either navigate to that location or specify the full path;

    Resource and further info on the postman collection transformer here: GitHub - postmanlabs/postman-collection-transformer: Perform rapid conversion and validation of JSON structure between Postman Collection Format v1 and v2.

  • joelzehring Profile Picture
    208 on at

    I was able to convert a Postman collection to v1, but after importing the collection to a new custom connector, I'm still running into a similar issue: I'm not able to specify clientCredentials as the value for the securityDefinitions.oauth2_auth.flow. I get an error 

    Structural error at securityDefinitions.oauth2_auth.flow
    should be equal to one of the allowed values
    allowedValues: implicit, password, application, accessCode

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard