Skip to main content

Application Actions (v2)

An application action lets a file workflow make a request to a business application and use the response in later steps. For example, a workflow could check an order's approval status before sending a file and record the delivery afterward.

Choose an Action

When you add a node in the Builder, look under the application's name to see which operations it offers. A built-in action comes with fields for its operation. The saved connection determines which account and environment it uses.

If the operation you need is outside the catalog, HTTP Request is an option when you can configure a compatible HTTPS request. When the workflow needs a downloaded file for a later step, such as decryption, Import File saves the response and passes that file on.

Connect the Account

A connection tells Files.com which application to contact and where to send the request. The service address is called the origin, and it can differ by region or environment. If a vendor has a separate sandbox address, its connection pairs that origin with a credential for the sandbox account.

The connection belongs to the Automation's Workspace, along with any Secret it uses for credentials. Other Automations in that Workspace can share the connection for actions that accept its origin and credential. In the Default Workspace, both resources are site-owned.

The action specifies the kind of credential it accepts. Some vendors issue tokens or keys directly in the account you'll connect. Others require you to create an app, project, or service account in your organization and give it permission to perform the operation. A connection for an action that allows unauthenticated requests needs only the application and origin.

Some vendors issue short-lived access tokens. The Secret holds the underlying credentials Files.com uses to obtain a token when it needs one. For example, a connection to DHL eCommerce BeneluxExternal LinkThis link leads to an external website and will open in a new tab uses a Key/Value Secret with the DHL user ID and key stored as user_id and api_key.

Inputs and Results

An action's inputs can be fixed values or TransformScript expressions. A fixed value is the same in every request. An expression can read a value from the current item, so each request can look up or update the record associated with that item.

The action makes one request per incoming file or data item. A successful request produces one data item with the HTTP status at payload.status and the response body at payload.body. The body can hold JSON or text. A JSON array stays together in payload.body. When the response has no body, the item still has a status and its body is null.

A later node can act on the returned data. If another step needs the original file, connect that step on a separate branch from the node that supplies the file. For example, an archive branch could copy the original regardless of the lookup result.

HubSpot Deal Lookup Example

Suppose the account team wanted a notification when a document arrived for a deal marked Closed Won in HubSpot. An earlier node could supply the deal ID as a string in a data item such as {"deal_id":"123456"}.

This example uses a HubSpot service keyExternal LinkThis link leads to an external website and will open in a new tab with permission to read deals. The key goes in a Token Secret. When both the custom header name and query parameter name are blank, Files.com sends it as a bearer token.

Choose the action that reads one deal by ID and include dealstage in the properties to return. A fixed ID for a known deal lets you test the lookup first. Once it works, map the deal ID input to payload.deal_id so the action looks up the deal named in each item.

An If node on the lookup's successful output can route the result. HubSpot returns the stage's internal ID. If Closed Won is closedwon in your pipeline, set the condition to payload.body.properties.dealstage == "closedwon". A deal in that stage would take the True path to the notification. A deal in another stage would take the False path.

Test the workflow with a known deal in each case. In Run Detail, the action's output should show the expected deal and stage, and the If node's output should show the path the item took.

Maintain the Connection and Action

When you replace the value on a Secret, later requests use the new credential. That includes requests from other actions or connections that share the Secret. An existing connection's origin is fixed. Moving the workflow to a different region or environment requires a connection with the corresponding origin and credential.

A catalog refresh can change which operations are available for new nodes. An existing Automation still uses the version of the action it saved, even if the operation disappears from the catalog. It still needs a working vendor service and a compatible credential.

To move a workflow to a newer version, select the current action and review its connection and input mappings before saving. A test with known data shows whether the updated operation still gives the next node what it needs.

Diagnose a Failed Action

Run Detail shows what the action received and what error it recorded. A missing value or a value of the wrong type points to the input mapping. If the vendor rejects the credential or denies permission, check that the connection uses the intended account and environment and that the credential still grants the access the action needs.

When the vendor sends no response, the origin and the vendor's service status can help explain the failure. The vendor can also accept the request and return a body that the action cannot read, such as invalid JSON or an unsupported format.

The action's Error Handling rules determine what happens to a failed item. A retry or rerun can send the request again. If a write timed out, the vendor may have made the change before Files.com stopped waiting. Check the record in the vendor's application before rerunning, and account for repeat writes when deciding whether to enable automatic retries.

Applications in the Catalog

The catalog draws from the applications below.

Amazon Selling Partner, Asana, Basecamp, Box, Chatwoot, Clerk, commercetools, DHL eCommerce, DigitalOcean, DomainTools, Dropbox Sign, FedEx, Figma, GitHub, GitLab, Gmail, Google BigQuery, Google Calendar, Google Chat, Google Cloud Storage, Google Docs, Google Drive, Google Sheets, Google Slides.

HubSpot, Klaviyo, LaunchDarkly, Notion, Novu, OpenAI, OpenFIGI, Orca Scan, Paddle, PagerDuty, PandaDoc, PayPal, Plaid, Pleo, Printify, Resend.

SendGrid, Shippo, Slack, Smartsheet, SMSGlobal, Square, Stripe, SumUp, Svix, Twilio, UPS, USPS, Webflow, WorkOS.