### Example Authorization Header Source: https://easycsv.io/docs An example of a Bearer token authorization header. ```text Authorization ``` ```text Bearer 12345abcde ``` -------------------------------- ### Integromat Webhook Action for CSV Generation Source: https://easycsv.io/docs/generate-csv-files Example of JSON array format to be sent via Integromat's HTTP module. The keys of the first object will be used as the CSV header. ```json [{"name": name_value_from_first_step, "email": email_value_from_first_step}] ``` -------------------------------- ### Bubble.io Bulk API Endpoint Examples Source: https://easycsv.io/docs/bubble These URLs are used to post import data to your Bubble.io database via the Bulk Create API. Ensure you replace 'appname', 'typename', and domain with your specific details. ```text https://appname.bubbleapps.io/api/1.1/obj/typename/bulk ``` ```text https://photo-test.bubbleapps.io/version-test/api/1.1/obj/teacher/bulk ``` ```text https://photo-test.bubbleapps.io/api/1.1/obj/teacher/bulk ``` ```text https://myapp.com/version-test/api/1.1/obj/teacher/bulk ``` ```text https://myapp.com/api/1.1/obj/teacher/bulk ``` -------------------------------- ### Base64 Encode Twilio Credentials Source: https://easycsv.io/docs/twilio Encode your Twilio Account SID and Auth Token for Basic Authentication. This example shows how to do this using the browser's developer console. ```javascript btoa("Your_Twilio_Account_SID:Your_Auth_Token") ``` -------------------------------- ### Example JSON Payload for Webhook Source: https://easycsv.io/docs This JSON structure represents the data sent to your API/Webhook for each record during a spreadsheet import. It includes import details and the specific record data. ```json { "import_id": 12345, "import_name": "product_list.csv", "import_datetime": "2026-07-21 19:35:07 +0000", "import_date": "2026-07-21", "importer_email": "example@yourdomain.com", "sheet_name": "Ecommerce Product Listings", "sheet_slug": "product", "sheet_id": 67890, "import_code": "gft6353ruy7", "record_data": { "product_name": "Widget", "product_description": "Change channels on your TV.", "price_in_cents": 1000, "homepage": "https://www.widget.com?utm_source=amazon" }, "virtual_fields": { "website_root_domain": "widget.com" } } ``` -------------------------------- ### Extract String Before Substring Source: https://easycsv.io/docs/virtual-fields Captures all characters from the start of a string up to the first occurrence of a specified substring (e.g., ' - '). ```regex ^.*(?=(\\s-\\s)) ``` -------------------------------- ### Knack API JSON Structure Example Source: https://easycsv.io/docs/knack This JSON structure is used to map CSV data fields to Knack object fields when performing API imports. Ensure field IDs (e.g., field_85) are correct for your Knack app. ```json { "field_85": { "first": "{{ FIRST_NAME }}", "last": "{{ LAST_NAME }}" }, "field_86": { "email": "{{ EMAIL }}", "label": "{{ EMAIL }}" }, "field_867":"{{ LANGUAGE }}", "field_869": { "street": "{{ CARRIER_ADDRESS }}", "zip": "{{ ZIP }}" } } ``` -------------------------------- ### Extract Filename Without Extension Source: https://easycsv.io/docs/virtual-fields Use this regex to get the file name from an attached CSV file without its extension. ```regex (.+?)(\\.[^.]*$|$) ``` -------------------------------- ### Add Authorization Header Source: https://easycsv.io/docs Configure an Authorization header by specifying the key and value. The value typically includes the authorization type followed by the token. ```text Authorization ``` ```text ``` -------------------------------- ### Basic Math Operations Source: https://easycsv.io/docs/virtual-fields Perform standard arithmetic operations and generate random numbers using virtual fields. ```EasyCSV Equations ({COLVF} + 5) * 0.28 ``` ```EasyCSV Equations (15 + 5) * 1.28 ``` ```EasyCSV Equations random_number({COLVF}) <- random_number(100) = 42 ``` ```EasyCSV Equations random_number_between(min, max) <- random_number_between(10, 100) = 42 ``` -------------------------------- ### Simple Date Transformation Source: https://easycsv.io/docs/virtual-fields Transform date formats using `transform_datetime`. The `starting_format` must be one of `mmddyyyy`, `ddmmyyyy`, or `yyyymmdd`. The `desired_format` uses strftime syntax. ```EasyCSV transform_datetime("{COLVF}", starting_format, desired_format) ``` ```EasyCSV transform_datetime("25/10/2024", 'mmddyyyy', '%-m/%-d/%Y') = "10/25/2024" ``` ```EasyCSV transform_datetime("25/10/2024", 'mmddyyyy', '%A') = "Sunday" ``` -------------------------------- ### Import CSV via API Webhook Source: https://easycsv.io/docs Use this POST request to import CSV data into EasyCSV. Include your API key and a publicly accessible URL to the CSV file in the request body or as URL parameters. ```bash curl -X POST \ 'https://easycsv.io/api/v1/import?api_key=YOUR_API_KEY&public_file_url=YOUR_CSV_URL' \ -H 'Content-Type: application/json' \ -d '{ "importer_email": "your_email@example.com", "import_name": "My Import", "import_code": "unique_code_123", "extra_columns": {"company_name": "Apple", "code": "abc123"} }' ``` -------------------------------- ### Set Basic Authentication Header Source: https://easycsv.io/docs/twilio Configure the 'Authorization' header with Basic Authentication. The value should be 'Basic' followed by the Base64 encoded string of your Twilio credentials. ```text Basic result_string_from_btoa_command ``` -------------------------------- ### Conditional Logic with IF Statement Source: https://easycsv.io/docs/virtual-fields Implement simple conditional logic to return one value if a condition is true, and another if false. Supports logical operators like AND and OR. ```EasyCSV Equations if ({COLVF} < 10, 10, 20) <- IF {COLVF} is 5, then this value would be 10 IF {COLVF} is 15, then this value would be 20 ``` ```EasyCSV Equations if ({COLVF} > 2 and {COLVF} < 10, "cheap", "expensive") ``` ```EasyCSV Equations if (contains("US", "{COLVF}") or contains("United States", "{COLVF}"), "US", "Other") ``` ```EasyCSV Equations xor, not - also available ``` -------------------------------- ### Advanced Date Transformation with strptime Source: https://easycsv.io/docs/virtual-fields Use `transform_datetime_strptime` for more complex date parsing and formatting, where both `starting_format` and `desired_format` use strftime syntax. ```EasyCSV transform_datetime_strptime("{COLVF}", starting_format, desired_format) ``` ```EasyCSV transform_datetime("Thu Jun 25 2026 00:00:00 GMT+0000", '%a %b %d %Y', 'Y%-%m-%d') = "2026-06-25" ``` ```EasyCSV transform_datetime("25/10/2024", '%d/%m/%Y', '%A') = "Sunday" ``` -------------------------------- ### Import CSV via API Webhook Source: https://easycsv.io/docs This endpoint allows you to import CSV data by sending a POST request to a unique EasyCSV webhook URL. You can provide your API key and a publicly accessible URL to the CSV file, along with optional parameters for customization. ```APIDOC ## POST /api/v1/import ### Description Import a CSV file by posting to an EasyCSV API Webhook. This method allows for automated data import into EasyCSV. ### Method POST ### Endpoint [The URL provided after checking 'Import sheets posted to API Webhook' in Sheet Details] ### Parameters #### Query Parameters - **api_key** (string) - Required - Your EasyCSV API key. - **public_file_url** (string) - Required - A publicly accessible URL to the CSV file. - **importer_email** (string) - Optional - Email address where import results will be sent. Recommended. - **import_name** (string) - Optional - Name of the import. Defaults to the file name from the URL if not specified. - **import_code** (string) - Optional - A string passed to EasyCSV to identify and validate an import. - **extra_columns** (JSON hash) - Optional - Arbitrary data to be added as columns and values to every row. Up to 50 columns can be added. Example: {"company_name": "Apple", "code": "abc123"} ### Request Example ```json { "api_key": "YOUR_API_KEY", "public_file_url": "http://example.com/data.csv", "importer_email": "user@example.com", "import_name": "MyDataImport", "extra_columns": { "company_name": "Apple", "code": "abc123" } } ``` ### Response #### Success Response (200) - The response indicates the status of the import process. Check the import log table on the import sheet page for detailed results. #### Response Example [Details of the import process will be available in the import log table on the EasyCSV interface.] ``` -------------------------------- ### Generate CSV from Shopify Order Line Items Source: https://easycsv.io/docs/generate-csv-files This JavaScript code processes Shopify order data to create a CSV file. It iterates through line items, extracting details like SKU, quantity, and product name to form individual rows. Use this when you need to convert complex order structures into a flat CSV format. ```javascript // Use this array to hold all rows var csv_rows = []; // Add rows for each line item in order for (var i = 0; i < inputData.line_items_qty.split(",").length; i++) { // Create row data var row = {}; row["ORDER_ID"] = inputData.order_num; row["SKU"] = inputData.line_items_sku.split(",")[i]; row["QTY"] = inputData.line_items_qty.split(",")[i]; row["PRODUCT_NAME"] = inputData.line_items_product_name.split(",")[i]; row["VARIANT_NAME"] = inputData.line_items_name.split(",")[i]; // Add row to final array csv_rows.push(row); } output = {items_array: JSON.stringify(csv_rows)}; ``` -------------------------------- ### Generate CSV via POST Request with URL Parameter Source: https://easycsv.io/docs/generate-csv-files Use this cURL command to send JSON data as a URL parameter to generate a CSV file. The 'data' parameter should contain an array of JSON objects. ```bash curl --location --request POST 'http://www.easycsv.io/generate_csv/12345-f9ae-678-b518-a84a786374c5?data=[{%22name%22:%20%22buc%20doe%22,%22email%22:%22bucdoe@easycsv.io%22}]' ``` -------------------------------- ### Date Comparison with Virtual Fields Source: https://easycsv.io/docs/virtual-fields Compare dates using standard comparison operators. Dates must be in YYYY-MM-DD format. Use a Virtual Field to reformat dates from your file if necessary. ```EasyCSV {COLVF} < 2023-01-02 <- true/false ``` -------------------------------- ### Date Arithmetic with Virtual Fields Source: https://easycsv.io/docs/virtual-fields Perform calculations on dates using the `duration` function. Dates must be in YYYY-MM-DD format. Use a Virtual Field to reformat dates from your file if necessary. You can also use `{YYYY}` or `{TODAY}` for conditional logic. ```EasyCSV {COLVF} + duration(30, days) ``` ```EasyCSV {COLVF} + duration(2, months) ``` ```EasyCSV {COLVF} + duration(1, year) ``` ```EasyCSV {COLVF} + duration(7, days) ``` ```EasyCSV {TODAY} + duration(7, days) ``` ```EasyCSV {TOMORROW} + duration(7, days) ``` ```EasyCSV {YESTERDAY} + duration(7, days) ``` -------------------------------- ### Extract String After First Space Source: https://easycsv.io/docs/virtual-fields Retrieves all characters that appear after the very first space in a string. ```regex \\s(.*) ``` -------------------------------- ### Select Letters, Spaces, and Hyphens Only Source: https://easycsv.io/docs/virtual-fields Filters a string to include only uppercase and lowercase English letters, spaces, and hyphens. Useful for cleaning names. ```regex [A-Za-z\\s-]+ ``` -------------------------------- ### Advanced String Manipulation with double_split_take Source: https://easycsv.io/docs/virtual-fields The `double_split_take` function is useful for splitting strings based on two delimiters, extracting a specific part, and optionally prepending/appending text before rejoining. ```EasyCSV double_split_take("{COLVF}", 1st_split_char, 2nd_split_char, take_index, prepend_text, append_text, join_char) ``` ```EasyCSV double_split_take("{COLVF}", ",", "|", 1, "CWR | ", "", ",") ``` ```EasyCSV double_split_take("Outdoor | Accessories, Paddlesports | Accessories, Automotive/RV | Accessories", ",", "|", 1, "CWR | ", "", ",") = CWR | Outdoor,CWR | Paddlesports,CWR | Automotive/RV ``` -------------------------------- ### Map Spreadsheet Columns to Bubble.io Database Fields Source: https://easycsv.io/docs/bubble Use this custom JSON structure in EasyCSV to map spreadsheet column headers to your Bubble.io database fields. Ensure keys exactly match Bubble.io attribute names, paying attention to case sensitivity. ```json { "Firstname": "{{ FIRSTNAME }}", "Lastname": "{{ LASTNAME }}", "Grade": "{{ GRADE }}", "Teacher": "{{ TEACHER }}", "Password": "{{ PASSWORD }}", "School": "{{ SCHOOL }}" } ``` -------------------------------- ### Extract String Until First Parenthesis Source: https://easycsv.io/docs/virtual-fields Selects all characters from the beginning of a string up to, but not including, the first opening parenthesis. ```regex ^[^\\(]* ``` -------------------------------- ### Pass Import Code to Embed Script Source: https://easycsv.io/docs/embed Include the 'import_code' parameter in the embed script URL to pass a custom code generated by your site. This code is sent to the data destination for verification. ```html ``` -------------------------------- ### CASE Statement for Multiple Conditions Source: https://easycsv.io/docs/virtual-fields Use a CASE statement for evaluating multiple specific conditions against a value and returning a corresponding result. Includes a default ELSE case. ```EasyCSV Equations CASE {COLVF} WHEN 'banana' THEN '$2.00' WHEN 'apple' THEN '$3.00' ELSE '$5.00' END ``` -------------------------------- ### Map CSV Columns to Caspio Fields with Custom JSON Source: https://easycsv.io/docs/caspio Use this JSON structure to map your CSV columns and virtual fields to your Caspio database column names. Keys are database column names, and values are the syntax for CSV columns or virtual fields. ```json { "FullName":"{{ FULL_NAME }}", "Email":"{{ EMAIL }}", "PhoneNumber":"{{ PHONE }}" } ``` -------------------------------- ### Aggregate Numeric Columns Source: https://easycsv.io/docs/virtual-fields Calculate the sum, minimum, maximum, or average across multiple specified columns for the same row. ```EasyCSV Equations sum({COLVF01}, {COLVF02}, {COLVF03}) ``` ```EasyCSV Equations min({COLVF01}, {COLVF02}, {COLVF03}) ``` ```EasyCSV Equations max({COLVF01}, {COLVF02}, {COLVF03}) ``` ```EasyCSV Equations avg({COLVF01}, {COLVF02}, {COLVF03}) ``` -------------------------------- ### Pass Importer Email to Embed Script Source: https://easycsv.io/docs/embed Add the 'importer_email' parameter to the embed script URL to pre-fill the user's email. This is used for import status updates and avoids prompting the user. ```html ``` -------------------------------- ### Nested IF for ELSE IF Logic Source: https://easycsv.io/docs/virtual-fields Simulate ELSE IF statements by nesting multiple IF functions. This allows for a series of conditions to be evaluated sequentially. ```EasyCSV Equations if ({PRICE} > 100, "Expensive", if ({PRICE} > 50, "Mid-range", "Affordable")) ``` -------------------------------- ### String Manipulation Functions Source: https://easycsv.io/docs/virtual-fields Perform various text operations including length, case conversion, substring extraction, searching, concatenation, and substitution. ```EasyCSV Equations len("{COLVF}") ``` ```EasyCSV Equations downcase("{COLVF}") ``` ```EasyCSV Equations upcase("{COLVF}") ``` ```EasyCSV Equations titleize("{COLVF}") <- titleize('123 ANTHONY WAY AVE') = '123 Anthony Way Avenue' ``` ```EasyCSV Equations left("{COLVF}", 2) <- left('ABCD', 2) = 'AB' ``` ```EasyCSV Equations right("{COLVF}", 2) <- right('ABCD', 2) = 'CD' ``` ```EasyCSV Equations mid("{COLVF}", 2, 2) <- mid('ABCD', 2, 2) = 'BC' ``` ```EasyCSV Equations find("substring", "{COLVF}") <- find('BC', 'ABCD') = 2 ``` ```EasyCSV Equations concat("abc-", "{COLVF}") <- concat('abc-', '987654') = 'abc-987654' ``` ```EasyCSV Equations substitute_all("{COLVF}", "old_string", "new_string") <- substitute_all('ABCDBC', 'BC', 'XY') = 'AXYDXY' ``` ```EasyCSV Equations substitute_all_regex("{COLVF}", "regex_pattern", "replacement_string") <- substitute_all_regex('Great! $Guy', '[^a-zA-Z0-9\s]', '') = 'Great Guy' ``` ```EasyCSV Equations remove_all_from_list("{COLVF}", "pattern1||pattern2||pattern3") <- substitute_all_from_list('The blue dog jumped over the black cat', 'blue||green||black') = 'The dog jumped over the cat' ``` ```EasyCSV Equations first_word("{COLVF}") <- first_word("Jane Doe") = "Jane" ``` ```EasyCSV Equations last_word("{COLVF}") <- last_word("Jane Doe") = "Doe" ``` ```EasyCSV Equations split_take("{COLVF}", "split_char", 1) <- split_take('13h 21m 12s', ' ', 1) = '13h' ``` ```EasyCSV Equations contains("substring", "{COLVF}") <- contains('BC', 'ABCD') = true ``` ```EasyCSV Equations escape_html("{COLVF}") ``` ```EasyCSV Equations unescape_html("{COLVF}") ``` ```EasyCSV Equations hash("{COLVF}") <- hash('1234567890') = 'a1b2c3d4e5f6g7h8i9j0k' ``` ```EasyCSV Equations hash_8_digit_int("{COLVF}") <- hash_8_digit_int('1234567890') = '98316954' ``` ```EasyCSV Equations hash_6_digit_int("{COLVF}") <- hash_6_digit_int('1234567890') = '316954' ``` ```EasyCSV Equations string_to_float("{COLVF}") <- string_to_float('1234.56') = 1234.56 ``` ```EasyCSV Equations string_to_integer("{COLVF}") <- string_to_integer('1234.56') = 1234 ``` -------------------------------- ### Extract UUID from Text or URL Source: https://easycsv.io/docs/virtual-fields Matches a standard Universally Unique Identifier (UUID) format within any text or URL. ```regex [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} ```