Global variables in actions

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 :+1: . Your interaction makes a difference. Have a wonderful day! :sun_with_face:

Thanks,
Rueben


:video_camera: Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!

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

Hi everyone! :waving_hand:

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.

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