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.
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 are available.
If needed, you could create Action secrets 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
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
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
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