# Automate Postman script

**URL:** <https://community.postman.com/t/automate-postman-script/78488>\
**Category:** Help Hub\
**Tags:** automation, jsondatafile\
**Created:** [April 14, 2025, 9:54am UTC](https://community.postman.com/t/automate-postman-script/78488 "2025-04-14T09:54:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 14, 2025, 11:12am UTC](https://community.postman.com/t/automate-postman-script/78488/2 "2025-04-14T11:12:44Z")

</div>

Hey @arnab-das1-d908282e 👋

Welcome to the Postman Community! :postman:

You might find more information around this on a previous topic:

> [@Pre-request script to automate authorization code grant type](https://community.postman.com/t/pre-request-script-to-automate-authorization-code-grant-type/45989):
>
> May i know outline or any examples about pre-request script to capture access token or bearer token when we have below information for “Authorization Code” grant type. BaseURL ClientId ClientSecret AuthURL AccessTokenURL redirect URL Scope Currently i am able to capture access token using - “Get New Access Token” button which will launch auth URL into browser and after providing username and password information and it will redirect to postman application with access token and which can …

---

_[View the full topic](https://community.postman.com/t/automate-postman-script/78488)._
