# Global variables in actions

**URL:** <https://community.auth0.com/t/global-variables-in-actions/114400>\
**Category:** Marketplace\
**Tags:** actions\
**Created:** [August 24, 2023, 10:44am UTC](https://community.auth0.com/t/global-variables-in-actions/114400 "2023-08-24T10:44:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharunnath](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tharunnath](https://community.auth0.com/u/tharunnath)\
**Post date:** [August 24, 2023, 10:44am UTC](https://community.auth0.com/t/global-variables-in-actions/114400/1 "2023-08-24T10:44:58Z")

</div>

Hi Team,  
Is there a way to create global variables in actions? (like )  
I can see in event object there is configuration parameter can you explain about that.It is getting empty value.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 25, 2023, 1:30am UTC](https://community.auth0.com/t/global-variables-in-actions/114400/3 "2023-08-25T01:30:42Z")

</div>

Hi @tharunnath,

Unfortunately, it is not possible to create global variables in Actions. When variables are created, they are only accessible within the same Action script.

Let me also mention that the event object does not have a configuration property. The event object is a ‘read-only’ object, and only the properties listed in the [Action script’s Event Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object) are available.

If needed, you could create [Action secrets](https://auth0.com/docs/customize/actions/write-your-first-action#add-a-secret) that can hold sensitive information within that Action script."

If you found this post helpful or interesting, please give it a like 👍 . Your interaction makes a difference. **Have a wonderful day!** 🌞

Thanks,  
Rueben

* * *

[📹 _Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!_](https://www.youtube.com/@OktaDev/videos)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 8, 2023, 1:30am UTC](https://community.auth0.com/t/global-variables-in-actions/114400/4 "2023-09-08T01:30:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 29, 2025, 5:53pm UTC](https://community.auth0.com/t/global-variables-in-actions/114400/6 "2025-08-29T17:53:27Z")

</div>

#### Hi everyone! 👋

**Actions Transaction Metadata** is now in **EA**. It lets you pass small key–value data **between multiple post-login Actions during a single authentication transaction.**

_How it works:_ set with `api.transaction.setMetadata([`key`], [`value`])`, then read via `event.transaction.metadata.key` later in the **same** login flow.

- You can read more about that feature from our docs → **Docs:** [auth0.com/docs/customize/actions/transaction-metadata](http://auth0.com/docs/customize/actions/transaction-metadata)

_ **NOTE:** _ _Transaction metadata is only available during the current authentication transaction and is not persisted beyond the completion of the authentication flow. This feature is only currently available on_ `post-login` _Actions._

Thanks!  
Dawid
