Skip to main content

HTTP & Integrations

Lido provides formulas for making HTTP requests and interacting with databases directly from your spreadsheet.


CALLURL

Makes an HTTP request to an external URL. This is an action formula — it executes when triggered.

Syntax:

=CALLURL(url, method)
=CALLURL(url, method, body, headers, output_ref)

Parameters:

ParameterDescriptionRequired
urlThe URL to callYes
methodHTTP method ("GET", "POST", etc.)Yes
bodyRequest bodyNo
headersRequest headers (JSON string)No
output_refCell reference to write the responseNo

FETCH

Makes an HTTP request and returns the response directly. Unlike CALLURL, FETCH is not an action — it executes immediately during formula evaluation.

Syntax:

=FETCH(url, method)
=FETCH(url, method, body, headers)

Parameters:

ParameterDescriptionRequired
urlThe URL to callYes
methodHTTP method ("GET", "POST", etc.)Yes
bodyRequest bodyNo
headersRequest headers (JSON string)No

Example:

=FETCH("https://api.example.com/data", "GET")

Returns the response body as a string. Use with JQ to parse JSON responses:

=JQ(FETCH("https://api.example.com/users", "GET"), ".users[0].name")

SQLQUERY

Executes a SQL read query (SELECT) against a connected database. This is not an action — it executes immediately during formula evaluation and returns the result.

Syntax:

=SQLQUERY(credential, sql_query)
=SQLQUERY(credential, sql_query, ssl)

Parameters:

ParameterDescriptionRequired
credentialDatabase credential IDYes
sql_querySQL query to executeYes
sslWhether to use SSLNo

SQLMUTATION

Executes a SQL write query (INSERT, UPDATE, DELETE) against a connected database. This is an action formula — it executes when triggered.

Syntax:

=SQLMUTATION(credential, sql_query)
=SQLMUTATION(credential, sql_query, ssl)

Parameters:

ParameterDescriptionRequired
credentialDatabase credential IDYes
sql_querySQL query to executeYes
sslWhether to use SSLNo

HubSpot

UPDATEHUBSPOT

Updates a record in HubSpot.

Syntax:

=UPDATEHUBSPOT(object_type, object_id, property_updates)

Parameters:

ParameterDescriptionRequired
object_typeHubSpot object type (e.g., "contacts", "deals")Yes
object_idID of the record to updateYes
property_updatesProperties to update (JSON)Yes

ADDHUBSPOT

Creates a new record in HubSpot.

Syntax:

=ADDHUBSPOT(object_type, properties)

Parameters:

ParameterDescriptionRequired
object_typeHubSpot object typeYes
propertiesProperties for the new record (JSON)Yes

DELETEHUBSPOT

Deletes a record from HubSpot.

Syntax:

=DELETEHUBSPOT(object_type, object_id)

Parameters:

ParameterDescriptionRequired
object_typeHubSpot object typeYes
object_idID of the record to deleteYes