![]() |
VOOZH | about |
The CData Excel Add-In for Vercel provides formulas that can query Vercel data. The following three steps show how you can automate the following task: Search Vercel data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as APIConnection1, or a connection string. The connection string consists of the required properties for connecting to Vercel data, separated by semicolons.
Vercel uses Bearer token authentication. You can use either a personal access token or an OAuth access token as the API key.
To obtain a personal access token:
After obtaining your token, set the following connection properties:
Profile=C:\profiles\Vercel.apip;AuthScheme=APIKey;APIKey=your_access_token;
Many Vercel resources are scoped to a team. To scope all requests to a specific team, set the TeamId connection property to your team's ID. You can find your team ID by querying the Teams table or from the Vercel dashboard. Alternatively, you can specify TeamId in your SQL queries using the WHERE clause where supported.
Once the authentication is configured, you can connect to Vercel and query data from any of the available tables such as Projects, Deployments, Teams, and Domains.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM User WHERE = '"&B4&"'","Profile="&B1&";AuthScheme="&B2&";APIKey="&B3&";Provider=API",B5)
👁 Formula inputs used in this example. (Google Apps is shown.)Connect to live data from Vercel with the API Driver
Connect to Vercel