I’m facing the following problem and would like to know if anyone has a solution:
My Setup:
- Config Collection (Singleton) with a field
url
- Another Collection with a string field using the “Autocomplete Input (API)” interface
- Flow with a webhook
What I want to achieve:
I would like to use the URL from my Config Collection centrally:
In the Autocomplete API:
{{config.url}}/search?q={{value}}
In the Flow Webhook:
{{config.url}}/search?q={{$trigger.payload.xyz}}
The Problem:
The variable {{config.url}}
doesn’t seem to be resolved. I want to manage the URL centrally through the Config Collection and use it dynamically in all places.
My Questions:
- Is it possible to use values from a Config Collection as global variables in other Collections and Flows?
- Is there another approach for central configuration variables in Directus?
- Has anyone implemented a similar setup before?
I appreciate any tips!