Skip to main content

Notifications

Power Automate - Connector Development
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?

 

 

  • joelzehring Profile Picture
    joelzehring 208 on at
    Re: Unable to create custom connector from working Postman collection

    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
  • Verified answer
    kierian Profile Picture
    kierian on at
    Re: Unable to create custom connector from working Postman collection

    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.

  • JohnMitchell Profile Picture
    JohnMitchell 6 on at
    Re: Unable to create custom connector from working Postman collection

    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?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics