- Stitch >
- Values & Secrets >
- Work with Values & Secrets
Access a Value¶
Overview¶
You can reference a Value from a service rule expression or a Function.
Usage¶
Reference a Value in a JSON Expression¶
You can access a Value’s stored data from a JSON expression using the
%%values
expansion.
Example
The following JSON expression evaluates to true
when the active
user’s id is included in the plain text array Value adminUsers
:
Reference a Value in a Function¶
You can access a Value’s stored data from a Function using the context.values module.
Example
The following Function returns true
when the active
user’s id is included in the plain text array Value adminUsers
: