Oneflow Actions (Zapier)

Elias Borghoff
Elias Borghoff
  • Updated

Add a Oneflow action

A wide range of Oneflow Action events can be added as actions to a Zap.

To add a Oneflow action to your Zap, follow these steps.

  1. Log in to Zapier.
  2. Click on + Create Zap.
  3. Add a trigger event of your choice.
  4. Test your trigger to make sure it works.
  5. Click on the Action card to configure it.
  6. Search for Oneflow by typing it in the search field and select it.

  7. Select an Action event from the events dropdown.

  8. Connect to your Oneflow account.

    NOTE

    To connect a Oneflow account to Zapier, you'll require a Oneflow token. For more information on how to obtain a Oneflow token, see Getting started with Oneflow x Zapier.

    Connect Oneflow account in Zapier
  9. Add the required inputs (parameters) for the action.

    NOTE

    Refer to the sections below for more details on the required inputs for each Oneflow action.

  10. Test the action.
  11. Publish your Zap.

Any input field can also be set using a custom value from a previous action's output, by clicking on the Custom tab in the same field. For example, in the Add Participant action, you can map the participant's name and email to contact details obtained from a previous step in Zapier (like a CRM trigger).

Create contract

Action inputs

This action is dedicated to creating a new contract by providing the necessary attributes. The workspaces and templates are loaded according to the previously selected Oneflow account.

Input Description Field Type Required? Sample Input
Oneflow Email The email of the contract creator. Text Box Yes* (If the email type is set to ‘User Email’) test@mail.com
Contract Name Name of the contract. Text Box No Test Contract
Workspace The name of the workspace in Oneflow.
Workspaces available for the connected account are listed as options in the dropdown.
Dropdown Yes Test Workspace
Template The name of the template that is used to create the contract.
The templates available in the workspace are listed as options in the dropdown.
Dropdown Yes Zapier Template
How many data fields do you need to map while creating the contract? The number of data fields you want to map while creating the contract, out of the number of data fields available in the template. Learn more about working with data fields. Text Box No 3
Custom Id of field n The list of custom field ids in the template. Dropdown Yes* (If the number of fields selected to be mapped is n, then it is mandatory to provide n number of custom ids). Participant 1 name
Value of field n

The relevant value for the nth custom field.

WARNING

If a certain custom data field Id is selected again, the previous value provided for the relevant field is replaced with the new value.

Text Box Yes* (If the number of fields selected to be mapped is n, then it is mandatory to provide n number of custom values for selected field ids). John Doe

Action output

Once the contract is successfully created, the following output is displayed.

Attribute Description Sample Value
id The identifier of the contract. 12222
name The name of the contract. Annual Contract
state Where the contract is in the signing process.
Draft: Only the owner-side can view the contract.
Pending: The contract is under negotiation.
Overdue: The contract signing period has expired, and the contract can no longer be signed. It will revert to pending if the signing period is extended.
Signed: All participants signed the contract. The contract is signed.
Declined: One participant declined the contract. The contract is declined.
Unknown: Used for future extensions.
draft
signed Whether the contract is signed or not. No
workspaceID The ID of the workspace that owns the template used to create the contract. 130809
templateID The ID of the template used to create the contract. 57311
privateOwnerSideCreatedTime

The time the contract was created.

(The private ownerside object contains attributes that are only visible to the owner-side party. The owner-side party is the party that created the contract.)

2022-10-17T03:56:49+00:00
canDeleteContract Indicates whether the user is allowed to delete contracts. (delete permission) true
canDownloadPDFContract Indicates whether the user is allowed to download the contract as a PDF. true
canSendContract Indicates whether the user is allowed to send contracts. false
canReceiveAttachments Indicates if attachments can be uploaded to the contract via API. true
canReceiveExpandedPDF Indicates if a PDF document can be uploaded to the contract via API. false
contractStateUpdatedTime Time of the last update of the contract status. 2022-11-01T00:00:03+00:00
contractUpdateTime Time of the last update of the contract. 2022-11-13T05:29:53+00:00
publishedTime The date and time at which the contract was published. 2022-10-17T11:38:15+00:00
signingPeriodExpiryTime The time during which a signatory can sign the contract. 2022-11-01T00:00:00+00:00
contractValue Amount indicating the total value of the contract. 500 USD
currency The currency of the amount (contractValue). The currency is inherited from the workspace in which the contract is located. USD
lifecycleState Keeps track of the contract status. Active
lifecycleStateUpdatedTime Date and time of the last successful update to the contract's life-cycle state. 2022-10-17T11:38:15+00:00
product table n name The name of the product table in the contract. Chemicals
product table n column n label The name of the column in the product table. Product

Apart from the above contract-related data fields, Contract data fields and Party data fields are listed similarly to the 'get contract details' action’s output.

Add an attachment or expanded PDF

Use this action to add an attachment (like a PDF) to an existing contract.

WARNING

  • The Oneflow contract template must contain a PDF Document and an Attachment section to be able to add an attachment or a PDF to a contract. To learn more, see Attach documents or files.
  • Only one PDF document can be added as an expanded PDF to a contract.
  • Up to 30 files can be added as attachments, each of which cannot exceed 20 MB, for a total of 50 MB per contract.
  • The following file extensions are allowed: ASICE, KEY, RTF, BMP, NUMBERS, TIF, CSV, ODS, TIFF, DOC, PAGES, TXT, DOCX, PDF, XLS, DOTX, PNG, XLSB, GIF, PPSX, XLSM, JPEG, PPT, XLSX, JPG, PPTX, XML.

Action inputs

The following are the input fields related to the Add Attachments or Expanded PDF action.

Input Description Field Type Required? Sample Input
Add Attachment as Specifies which user account will perform this action, determined by the type of email that is added: Creator Email or User Email. Dropdown Yes User Email/
Creator Email
Oneflow Email The email address used in the Oneflow account. Text Box Yes*
(If the email type is set to ‘User Email’)
test@testmail.com
File Name Name of the file without the extension.

If left blank, the name of the uploaded file will be used as the file name within the Oneflow contract as well.
Text Box No test filename
File Encoded file data, i.e. the list of files to be uploaded to the contract in binary, a publicly downloadable link, or base64 format.

Maximum file size should not exceed 20MB.
Text Box Yes  
Contract ID The unique identifier for the contract. Text Box Yes 57313
Upload As Files can be uploaded and added to the contract as attachments or one PDF can be added as an expanded PDF. Dropdown Yes Attachment/
Expanded PDF

Action output

When the above input attributes are provided and the action is run successfully, the following output is obtained (for both attachment types).

uploadStatus: success
Successful upload status
  • You may also access a list of additional fields to retrieve from a prior event (trigger or action) by clicking the ‘Custom’ tab.

Add participant

This action is used to add a new participant to an existing Oneflow contract. Once a Zap with this action runs, a new participant with the provided details is added to the specified contract.

NOTE

There can be a maximum of 40 participants across all parties in one contract.

Action inputs

The following are the inputs for the ‘Add participant’ action.

Input Description Field Type Required? Sample Input
Add Participant As Lets you select the type of participant that will be added through the Add Participant action.

Select whether the participant should be added to the specified contract as a user or a creator.

When the ‘user’ option is selected, the relevant user email can be selected from the next drop-down.
Dropdown Yes User/
Creator
Oneflow Account The Oneflow account used for the "add participants as" action.

The Oneflow account only needs to be specified if the participant being added is a 'user'.

If the creator option is selected, the default Oneflow account is connected.

A dropdown list of users connected to the Oneflow account will be listed to be selected.

Additionally, values from previous/other actions can also be provided in the custom tab of the same field.
Dropdown Yes* (If the participant
type is set to ‘User’)
test@gmail.com
Contract ID The identifier for the contract. Text Box Yes 57313
Participant Type

The type of participant in the contract.

  • Participant/Colleague: Adds a new participant to the existing counterparty or contract owner party.
  • Company: Adds a new "Company" type counterparty.
  • Individual: Adds a new "Individual" type counterparty.
Dropdown Yes
  • Participant/ Colleague
  • Company
  • Individual
Company Name The name of the company (If the participant type is selected as a company). Text Box Yes
(If the participant type is selected as a company)
Sample Company
Company Registration No. The registration number of the company. (If the participant type is selected as a company).

The maximum number of characters for this field is 25.
Text Box No 23222
Party ID The unique identifier of the party to which the participant should belong.

A party represents a legal entity in a contract.

The value for **Party ID** can be chosen from the outputs of previous actions, e.g., "Get Contract Details".

This can be used to add colleagues to an existing company.
Text Box Yes*
(If participant type is Participant/Colleague)
232
Participant Name First name and the last name of the participant. Text Box Yes John Doe
Participant Email Email address of the participant. Text Box No johndoe@testmail.com
Participant Contact Number The telephone number of the participant. Text Box No +46 xxx xxx xxx
Role in Contract

The role of the participant in the contract:

  • Signatory: a party that can sign the contract, edit, and add comments.
  • Influencer: a party with access to the contract who can edit and add comments.
  • Viewer: a party with access to the contract who can add comments.
Dropdown Yes Signatory
Influencer
Viewer

Action output

When this action is triggered/tested and is successful, the following output is obtained.

participantId: 126797
participantEmail: abc+test1@oneflow.com
Permission: true
deliveryChannel: email
deliveryStatus: success
identificationNumber: null
myParticipant: false
Name: Test Name
Organizer: false
createdTime: 2022-11-11T15:12:50+00:00
firstVisitedTime: null
lastVisitedTime: null
updatedTime: 2022-11-11T15:12:50+00:00
Visits: 0
phoneNumber:
signMethod: standard_esign
signState: undecided
signStateUpdatedTime:null
signatory: true
title:
twoStepAuthenticationMethod: none

The following table contains the explanation of each of the above output attributes.

Attribute Description Sample Value
participantId The unique ID of the participant. 126797
email The participant's email address. abc+test1@oneflow.com
permission Defines permissions for the contract participant.
(contract:update - Indicates whether the participant is allowed to make changes in the contract.)
true
deliveryChannel The name of the delivery method of the contract. To learn more, see Available delivery channels in Oneflow. email
deliveryStatus Indicates the status of the notification sent to the contract participant. To learn more, see Available delivery statuses in Oneflow. success
identificationNumber The date of birth, SSN, personal number, etc., of the participant. null
myParticipant Whether the participant represents the current user or not.

Add product

This action is used to add a new product to a table in an existing Oneflow contract. Once a Zap with this action runs, a new product with the provided details is added to the specified table in the contract. Note: When using this action, ensure that the template you select during contract creation contains a product table.

Action inputs

The following are the inputs for the ‘Add product’ action.

Input Description Field Type Required? Sample Input
Update products as Specifies which user account will perform this action.

Select whether the product should be added to the specified contract as a user or a creator.

When the ‘user’ option is selected, the relevant user email can be selected from the next dropdown.
Dropdown Yes User/
Creator
Contract ID The Oneflow contract used for the "add product as" action.

A dropdown list of contracts connected to the Oneflow account will be listed to be selected.

Additionally, values from previous/other actions can also be provided in the custom tab of the same field.
Dropdown Yes 244191
Product table id

The product table name will be displayed in the dropdown for easy reference.

If a name has been set for the product table within Oneflow, the product table's name will be displayed in the dropdown.

If the product table in Oneflow does not contain a name or if it was disabled, the product table will be displayed in the dropdown as “Untitled”.

NOTE

By default, Oneflow sets the product table’s name to “Untitled” when a product table is added to a contract.

If the product table name was removed intentionally from Oneflow: The Product table’s ID is displayed in the dropdown.

Dropdown Yes 267002
Product name The name of the product. Text Box Yes Book
Product description The description of the product. Text Box No Single ruled, 200 pages
Base price 1 The price 1 base amount for the product. Price 1 refers to the initial fixed price. Text Box No 200.00
Price 1 discount The discount amount for price 1 of the product.

Note: If a value is provided as an absolute number (i.e. 6.75), then this discount amount is deducted from the product's 'price 1' base price.

If a percentage value is provided (i.e. 12%), then the discount amount is calculated as a percentage of the product's 'price 1' base price and deducted from it.
Text Box No 25 (200-25)
or 0.25 (200-0.25)
or 25% (200*0.25)
Base price 2 The price 2 base amount for the product. Price 2 refers to the subscription service fee. Text Box No 210.00
Price 2 discount The discount amount of price 2 of the product. Text Box No 7.5%
Quantity Type The quantity type of the product 1 in products in the contract. Dropdown No Quantity
Quantity Value The number of products (quantity). Text Box Yes 2
Lock for counterparties Whether to lock the product fields such that counterparties in the contract cannot make changes to them. Dropdown No Yes

Action output

When this action is triggered/tested and is successful, the following output is obtained.

counterpartyLock: false
description: "Single ruled, 200 pages book"
id: 248665
name: "Book"
price_1BaseAmount: 200.00
price_1DiscountAmount: 2.00
price_1DiscountPercent: 0.000
price_2BaseAmount: 210.00
price_2DiscountAmount: 0.00
price_2DiscountPercent: 5.000
quantityAmount: 2
quantityType: "quantity"

The following table contains the explanation of each of the above output attributes.

Attribute Description Sample Value
counterpartyLock Whether to lock the product fields such that counterparties in the contract cannot make changes to them. false
description The description of the product. Single ruled, 200 pages book
id ID of the product 248665
name The name of the product Book
price_1BaseAmount The price 1 base amount for the product. Price 1 refers to the initial fixed price. 200.00
price_1DiscountAmount The discount amount for price 1 of the product. 2.00
price_1DiscountPercent The discount as a percentage for price 1 of the product. 0.00
price_2BaseAmount The price 2 base amount for the product. Price 2 refers to the subscription service fee. 210.00
price_2DiscountAmount The discount amount for price 2 of the product. 0.00
price_2DiscountPercent The discount as a percentage for price 2 of the product. 5.000
quantityAmount The number of products (quantity). 2
quantityType The quantity type of the product in products in the contract. quantity

Delete contract

This action is used to delete an existing contract from Oneflow.

NOTE

The ability to delete a contract depends on your role in the workspace where the contract resides.

Action inputs

The following are the inputs for the ‘Delete Contract’ action.

Input Description Field Type Required? Sample Input
Oneflow Email Email connected to Oneflow account. Dropdown Yes test@gmail.com
Contract ID The unique identifier of the contract. Text Box Yes 57313

Action output

If the action runs successfully, the specified contract is deleted from Oneflow and the 'delete' status is notified.

deleteStatus: success

Download contract

This action is used to download files from an existing Oneflow contract.

NOTE

When a zap with the Download action runs, the contract is downloaded along with its attachments. Each contract will always have one file to be downloaded.

Action inputs

The following is the input for the ‘Download Contract’ action.

Input Description Field Type Required? Sample Input
Contract ID The unique identifier of the contract. Text Box Yes 57313

Action output

When this action is run, a downloadable link to the contract is provided.

The following table contains the explanation of each of the above output attributes.

The downloaded contract file includes all attachments and signature files (if the contract is signed) that were attached to the contract.

Attribute Description Sample Value
file Public link to download the contract file. https://kuy77qd66ti-production-agreements-assets.s3.amazonaws.com/3981011/unsigned_pdfs/revision-53.pdf?response-content-disposition=attachment%3Bfilename%3D%22contract.pdf%22&AWSAccessKeyId=AKIAIRBIJIVNG6GTBWRA&Signature=uJ3Y%2FAM%2BEVVd51%2FfLMVOYsqBnF4%3D&Expires=1669792019

Get contract details

This action is used to retrieve the details of an existing Oneflow contract.

Action inputs

The following are the inputs of the ‘Get Contract Details’ action.

Input Description Field Type Required? Sample Input
Contract ID The unique identifier of the contract. Text Box Yes 5731312

In addition to the above-required parameters, the following data fields can be retrieved optionally as additional fields, allowing users to get all the contract and party-related data.

Data fields are contract variables (also known as placeholders, custom fields, tags, etc.) that you can use in product tables, text, images, and form sections within a Oneflow contract.

  1. Contract Data Fields
  2. Party Data Fields
  3. Contract Lifecycle Fields
  4. Contract Products

Action output

When the Get contract details action is tested or run, the following contract attributes are retrieved in the output (without contract/party data fields/Contract Lifecycle Fields).

Attribute Description Sample Value
id The unique identifier of the contract. 57313
name The name of the contract. Sample Contract
state

Where the contract is in the signing process.

  • Draft: Only the owner-side can view the contract.
  • Pending: The contract is under negotiation.
  • Overdue: The contract signing period has expired, and the contract can no longer be signed. It will revert to pending if the signing period is extended.
  • Signed: All participants signed the contract. The contract is signed.
  • Declined: One participant declined the contract. The contract is declined.
  • Unknown: Used for future extensions.
overdue
signed Whether the contract is signed or not. No
workspaceID The ID of the workspace that owns the template used to create the contract. 130809
templateID The ID of the template used to create the contract. 57311
privateOwnerSideCreatedTime

The time the contract was created.

(The private ownerside object contains attributes that are only visible to the owner-side party. The owner-side party is the party that created the contract.)

2022-10-17T03:56:49+00:00
canDeleteContract Indicates whether the user is allowed to delete contracts. (delete permission) true
canDownloadPDFContract Indicates whether the user is allowed to download the contract as a PDF. true
canSendContract Indicates whether the user is allowed to send contracts. false
canReceiveAttachments Indicates if attachments can be uploaded to the contract via API. true
canReceiveExpandedPDF Indicates if a PDF document can be uploaded to the contract via API. false
contractStateUpdatedTime Time of the last update of the contract status. 2022-11-01T00:00:03+00:00

Contract Products

  • This action retrieves the product information from a product table in a contract. A maximum of 3 product tables are supported per contract with each product table containing a maximum of 10 products. The following product attributes will be retrieved
Attribute Description Sample Value
product table n id The unique ID of the product table. 126427
product table n name The name of the product table in the contract. Chemicals
product table n column n label The name of the column in the product table. Product
product id The unique ID of the product. 100
product name The name of the product. Aluminum
product description The description of the product. A cheap metal
product price_1 base amount The price 1 base amount for the product. Price 1 refers to the initial fixed price. 150
product price_1 discount amount The discount amount for price 1 of the product. 10
product price_1 discount percentage The discount as a percentage for price 1 of the product.

Note: Only one discount value will be retrieved. This is either the ‘discount amount’ or the ‘discount percentage’ value.
7.00
product price_2 base amount

The secondary or alternative price for the product.

For instance, Price 2 can be used for a monthly subscription fee.

145
product price_2 discount amount The discount amount for price 2 of the product. 8
product price_2 discount percentage The discount as a percentage for price 2 of the product. 6.00
product quantity type( quantity, multiple_choice, single_choice) The quantity type of product 1 in the contract. quantity
product quantity amount product quantity amount. 3
product lock for counterparty Whether to lock the product fields such that counterparties in the contract cannot make changes to them. True
product table - 1 - id
65873216
product table - 1 - column - 1 - label
Product
...

Send contract

This action sends or publishes a contract that already exists in Oneflow to its participants. The Send contract action allows you to invite participants to sign or view the contract.

Action inputs

Input Description Field Type Required? Sample Input
Email Type The type of user email: Creator Email or User Email. Dropdown Yes User Email/Creator Email
Oneflow Email The email address used in the Oneflow account. Text Box Yes* (If the email type is set to ‘User Email’) test@gmail.com
Contract ID The unique identifier of the contract. Text Box Yes 57313
Subject

The subject of the contract invitation, which is sent to all participants according to their delivery channel.

The subject field may contain a maximum of 150 characters.

Text Box Yes Your contract subject
Message

The message that will be displayed under the subject of the contract invitation. This invitation is sent to all contract participants through the delivery channel.

The message field may contain a maximum of 5000 characters.

Text Area Yes Your message

Action output

Once the details are specified and the contract is sent successfully, a link to the published contract is provided. This link can be used to access and view the contract in Oneflow.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request