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?
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
Workarounds
Option 1: Install an older version of Postman
Option 2: Convert from v2 to v1 with the Postman Collection Transformer
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:
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.
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?