System Variables
Options
Riaan Backer
Member ✭
Can you store a list of values in one system variable.
As an example, I need to store a list of roles that has access to an end point and want to manage this centrally through system variables.
What I am looking for is something like this.
var (allowedroles) = admin,sales,finance
When an end point is executed is to step through the allowedroles variable to see if the role is allowed to execute
or does it only allow for single values?
As an example, I need to store a list of roles that has access to an end point and want to manage this centrally through system variables.
What I am looking for is something like this.
var (allowedroles) = admin,sales,finance
When an end point is executed is to step through the allowedroles variable to see if the role is allowed to execute
or does it only allow for single values?
Comments
-
Environment variables only support text strings - but you can still manipulate those on the fly with filters. You could store it as json and then use the json_decode filter. Or you could store it as comma separated values and then use the split filter.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback