Requirements:
- Activepieces version 0.34.5 or higher
- SDK version 0.3.2 or higher
“connectionName” is the externalId of the connection (to find it, hover the piece icon of the connection in the connections table: the tooltip shows the External ID).
We kept the same parameter name for backward compatibility, anyone upgrading their instance from < 0.35.1, will not face issues in that regard.
We kept the same parameter name for backward compatibility, anyone upgrading their instance from < 0.35.1, will not face issues in that regard.
- You can use the embedded SDK in your SaaS to allow your users to create connections and store them in Activepieces.
1
Initialize the SDK
Follow the instructions in the Embed Builder.
2
Call Connect Method
After initializing the SDK, you will have access to a property called Connect Parameters:
activepieces inside your window object. Call its connect method to open a new connection dialog as follows.Connect ResultThe
connect method returns a promise that resolves to the following:name is the externalId of the connection.
connection is undefined if the user closes the dialog and doesn’t create a connection.
The promise rejects if the dialog cannot load the piece, for example when pieceName is wrong.
