Hi
I’m working on a custom piece (trigger/action) and I’d like it to automatically use a connection at execution time, without showing any connection dropdown to the user in the flow builder.
Our setup:
- We upsert the connection via API (one per project, tied to the piece).
- At runtime, we want the piece to fetch and use that connection based on the project context.
I came across this topic on the forum, which seems related.
However, I’m not sure how to apply the suggested approach to our case — we don’t have a previous step returning the connection, and we’re not using the builder UI to let users pick one.
Is there a clean way for a piece to retrieve the project’s connection directly at runtime?
Thanks in advance for any help!
(I saw something about the ConnectionsManager
from community framework, but not sure about it)