postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Access/use package library in gRPC request scripts

Open alvioshki opened this issue 1 year ago • 1 comments
trafficstars

Is there an existing request for this feature?

  • [X] I have searched the existing issues for this feature request and I know that duplicates will be closed

Is your feature request related to a problem?

I would like to reuse javascript code in gRPC request scripts to keep my code DRY

Describe the solution you'd like

Access package library in gRPC request scripts

Describe alternatives you've considered

Currently I am copy-pasting the code across requests, which is very brittle and time consuming

Additional context

No response

alvioshki avatar Aug 30 '24 07:08 alvioshki

Please prioritize this feature along with priotizing folder level scripts in gRPC. We have to secure our endpoints with OAuth Token calls to a 3rd party auth service and are currently doing exactly what @alvioshki calls out. This is very brittle and time consuming +1.

brinehart avatar Mar 10 '25 13:03 brinehart

Hey! gRPC requests now support using packages in scripts from Postman's Package library and external registries such as npm and JSR.

Image

@brinehart You can follow https://github.com/postmanlabs/postman-app-support/issues/11699 for updates on Collection and Folder level scripts in gRPC.

appurva21 avatar Oct 24 '25 07:10 appurva21