![]() |
VOOZH | about |
The CData Excel Add-In for Square provides formulas that can edit, save, and delete Square data. The following three steps show how you can automate the following task: Search Square 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 SquareConnection1, or a connection string. The connection string consists of the required properties for connecting to Square data, separated by semicolons.
Square uses the OAuth authentication standard. To authenticate using OAuth, register an app with Square to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL. See the "Getting Started" chapter of the help documentation for a guide to using OAuth.
Additionally, you must specify the LocationId. You can retrieve the Ids for your Locations by querying the Locations table. Alternatively, you can set the LocationId in the search criteria of your query.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Refunds WHERE Type = '"&B6&"'","OAuthClientId="&B1&";OAuthClientSecret="&B2&";CallbackURL="&B3&";LocationId="&B4&";InitiateOAuth="&B5&";Provider=Square",B7)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for Square to get started:
Download NowLearn more:
👁 Square IconThe Square Excel Add-In is a powerful tool that allows you to connect with live data from Square, directly from Microsoft Excel.
Use Excel to connect to Square Transactions, Items, Subscriptions, etc. Perfect for Excel based data analysis, data cleansing & de-duplication, and more!