Submit a ticket
Welcome
Login

Connector specification

Introduction to connectors

A connector is meant to be used alongside Power Automate flows and MS LogicApps to build code-free business logic using 'block' constructors.

Here's a basic example of a flow :

Execution goes from top to bottom, and in this specific example, we're integrating the Oneflow connector with MS Dynamics. Whenever someone executes the flow in the scope of the contract record in the Dynamics environment, the flow will run and publish a contract.

Connector components

Actions

Note:

Our MVP version of the connector is based on Actions (Triggers will be available in the future).

Here's the list of all actions implemented at the moment:

Each action may have Input parameters and Output objects that you can use in subsequent steps.

Action reference

Below is a more detailed list of actions, their input parameters, and what they output.

Check API availability

Public API request:  Check API availability.

Input: none

Output: none (empty object)

Create a contract

Public API request URL: Create a contract.

Input:

NameTypeRequiredDescription
Workspace IdDrop DownYes
Template IdDrop DownYes
NameStringNo

Output: Outputs a Contract object.

Create a contract participant

Public API request URL:  Create a party in a contract, Create a participant

Input:

Participant type: Individual

NameTypeRequiredDescription
Contract IdIntyesID of the contract to add participants to
Participant TypeenumyesIndividual or company
Party Country CodestringnoISO code of the country
Delivery Channelenumyes
Participant EmailstringsometimesRequired if a delivery channel or sign method is set to email
Participant Identification Numberstringno
Participant Namestringyes
Participant Phone NumberstringsometimesRequired if the sign method is set to SMS.
Participant Sign Methodenumyes
Signatory?booleanno
Participant Titlestringno
Participant 2FA Methodenumno
Permissions: Can update the contract?booleansometimesRequired if Signatory is set to true

Participant Type: Company

NameTypeRequiredDescription
Contract IdIntyesID of the contract to add participants to
Party Country CodestringnoISO code of the country
Delivery Channelenumyes
Participant EmailstringsometimesRequired if the delivery channel or sign method is set to email
Party Namestring
Party Identification Numberstringno
Participant Identification Numberstringno
Participant Namestringyes
Participant Phone NumberstringsometimesRequired if the sign method is set to SMS.
Participant Sign Methodenumyes
Signatory?booleanno
Participant Titlestringno
Participant 2FA Methodenumno
Permissions: Can update the contract?booleansometimesRequired if Signatory is set to true

Output: Dynamic output, either Participant or Party

Delete a contract

Public API request URL: Delete a contract by ID

Input:

NameTypeRequiredDescription
Contract IdIntyes

Output: none (empty object)

Download a contract file by ID

Public API request URL: Get a contract file by ID

Input:

NameTypeRequiredDescription
Contract IdIntyes
File Idint (with predefined enum)yes1 - contract file

2 - definition

Output: Outputs a file content in byte array format.

Get a contract status

Public API request URL: Get a contract by ID

Input:

NameTypeRequiredDescription
Contract IdIntyes

Output:

NameTypeDescription
StatestringStatus of the contract
State Updated TimeDateTimeWhen the status of the contract was updated
Contract's Updated TimeDateTimeWhen the contract was last updated

Publish a contract

Public API request URL: Publish a contract by ID

Input:

NameTypeRequiredDescription
Contract IdIntYes
Publish Notification SubjectStringYes
Publish Notification MessageStringYes

Output: Contract model

Upload attachments

Public API request URL: Upload attachments

Input:

NameTypeRequiredDescription
Contract IdIntYes
FileByte ArrayYesContents of the file
File (file name)StringYesFile name (with file extension)
Upload AsEnumYesexpanded_pdf or attachment

Output: None (empty object)

Create connections

Whenever a connection is created, it asks for the email address and API Token:

It can then be applied to any actions using the Oneflow connector.

The inputted email is set to the "x-oneflow-user-email" header with each API call. The following policy takes care of that:

Note:

The API key is applied with regular functionality (without setting up any additional policies).

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.