https://www.activepieces.com logo
πŸ‘‹ hello guys, does someone know the
# 🧩|building-pieces
a
a
hi @aguerin_50418
Global Connections are created by platform admins and assigned to specific projects
App Connections are essentially just project scoped connections created by any project member or platform admin.
and they are only available for the project they were created in.
I hope that clears it out, if not, feel free to ask more πŸ˜„
a
ok, ok, seems clear so platform admins who want to provide a transparent authentication for their users use Global Connection, and If we just want to preconfigure a connection for a project, we should use the
/app-connections
, right ?
a
if you don't want it used in other projects, yes.
a
ok, it's pretty clear for me now ! Thanks Abdul πŸ€—
a
anytime πŸ˜„
a
last question, following this point, we would like to upsert an app connection (using
PLATFORM_OAUTH2
)
for a project, and pre-select it everytime a trigger is applied, everytime an action is added, or everytime we import a Template Is that possible to do that ? Could we use the [Predefined Connection](https://www.activepieces.com/docs/embedding/predefined-connection#prerequisites) ? I'm not sure about the faisability
a
If you can guarantee the connection always being there, and this is your own piece, then yes, I would recommend you use predefined connecitons.
a
we can guarantee we'll create one by default yes πŸ‘ but, we would like to allow our users to use another one if they want to, and create another new app connection, that the user should select manually > more like ~using a default connection where we provide a default connection
a
hmmmmm, let me check something
I don't know if you will be able to preselect the connection as things stand right now
however
if you create the predefined connection the user will already have it in the dropdown they can just select it from there.
for templates, if you have the value selected already, then yes, they will be preselected, but not for adding actions/triggers.
a
"if you create the predefined connection the user will already have it in the dropdown they can just select it from there." => yes, it could be a good start for us on this point
a
awesome πŸ˜„
a
"for templates, if you have the value selected already, then yes, they will be preselected, but not for adding actions/triggers" in this case, I don't know how exactly it works > Building the automation that'll be used as a template, I select, for my project, my upserted connection > Then, export it > Then, import as model from admin area > Then, an user from another projet, that would like to use this template, import it > => How the selected connection will be "pre-fill" in this case ?
a
basically, let's say you create a flow, in it you add a step of your piece and select the global connection, then export the flow and import it in another project that has the same global connection assigned to it, when you click the step you will see the connection already selected
a
ah ok, in our case, each project will have their own app connection for piece "Sellsy"
a
@aguerin_50418 just to be clear about the preselection on adding steps, I would prefer we discuss that feature request on Slack in a thread just so everyone has better visibility than on here, it is not in the app atm, but we can talk about it on Slack and figure out adding it to the roadmap πŸ™
a
yes, no problem, I'll move it to Slack πŸ™‚