You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Demonstration: Trigger a custom event for specific product or variant changes](./demonstration-trigger-a-custom-event-for-specific-product-or-variant-changes)
@@ -394,6 +397,10 @@ This directory is built automatically. Each task's documentation is generated fr
394
397
395
398
*[Auto-tag products by age](./auto-tag-new-products-by-age)
396
399
400
+
### Airtable
401
+
402
+
*[Demonstration: Create and update a table in Airtable](./demonstration-create-and-update-a-table-in-airtable)
403
+
397
404
### Alert
398
405
399
406
*[Alert when daily order limit is reached](./alert-when-daily-order-limit-is-reached)
@@ -765,12 +772,15 @@ This directory is built automatically. Each task's documentation is generated fr
765
772
*[Demonstration, Tutorial: Fetch data from a shared Google sheet](./demonstration-fetch-data-from-a-shared-google-sheet)
766
773
*[Demonstration: Add new orders to a Google Sheet](./demonstration-add-new-orders-to-google-sheet)
767
774
*[Demonstration: Auto-tag new orders, with scheduled reconciliation](./demonstration-auto-tag-new-orders-with-reconciliation)
775
+
*[Demonstration: Create and update a table in Airtable](./demonstration-create-and-update-a-table-in-airtable)
776
+
*[Demonstration: Create sheets and list and create files in Google Drive](./demonstration-create-sheets-and-list-and-create-files-in-google-drive)
768
777
*[Demonstration: Fetch an external configuration file](./demonstration-fetch-an-external-configuration-file)
769
778
*[Demonstration: Fulfillment order move](./demonstration-fulfillment-order-move)
770
779
*[Demonstration: Generate product sales report PDF with pie chart](./demonstration-generate-product-sales-report-pdf-with-pie-chart)
771
780
*[Demonstration: Generating a file and uploading it to Shopify](./demonstration-generate-a-file-and-upload-to-shopify)
772
781
*[Demonstration: Order editing](./demonstration-order-editing)
773
782
*[Demonstration: Performing action runs in sequence](./demonstration-performing-action-runs-in-sequence)
783
+
*[Demonstration: Post to a Slack channel](./demonstration-post-to-a-slack-channel)
*[Demonstration: Trigger a custom event for specific product or variant changes](./demonstration-trigger-a-custom-event-for-specific-product-or-variant-changes)
@@ -950,12 +960,14 @@ This directory is built automatically. Each task's documentation is generated fr
950
960
951
961
### Google Drive
952
962
963
+
*[Demonstration: Create sheets and list and create files in Google Drive](./demonstration-create-sheets-and-list-and-create-files-in-google-drive)
953
964
*[Demonstration: Upload files to Google Drive](./demonstration-upload-files-to-google-drive)
954
965
955
966
### Google Sheets
956
967
957
968
*[Add new Shopify Forms submissions to a Google Sheet](./add-new-shopify-forms-submissions-to-a-google-sheet)
958
969
*[Demonstration: Add new orders to a Google Sheet](./demonstration-add-new-orders-to-google-sheet)
970
+
*[Demonstration: Create sheets and list and create files in Google Drive](./demonstration-create-sheets-and-list-and-create-files-in-google-drive)
959
971
960
972
### HTTP
961
973
@@ -981,6 +993,9 @@ This directory is built automatically. Each task's documentation is generated fr
981
993
### Integration
982
994
983
995
*[Bulk trigger Shopify Flow with historical data](./bulk-trigger-shopify-flow-with-historical-data)
996
+
*[Demonstration: Create and update a table in Airtable](./demonstration-create-and-update-a-table-in-airtable)
997
+
*[Demonstration: Create sheets and list and create files in Google Drive](./demonstration-create-sheets-and-list-and-create-files-in-google-drive)
998
+
*[Demonstration: Post to a Slack channel](./demonstration-post-to-a-slack-channel)
# Demonstration: Create and update a table in Airtable
2
+
3
+
Tags: Airtable, Demonstration, Integration
4
+
5
+
# Demonstration: Create and update a table in Airtable
6
+
7
+
* View in the task library: [tasks.mechanic.dev/demonstration-create-and-update-a-table-in-airtable](https://tasks.mechanic.dev/demonstration-create-and-update-a-table-in-airtable)
8
+
* Task JSON, for direct import: [task.json](../../tasks/demonstration-create-and-update-a-table-in-airtable.json)
[Learn about task options in Mechanic](https://learn.mechanic.dev/core/tasks/options)
21
+
22
+
## Subscriptions
23
+
24
+
```liquid
25
+
mechanic/user/trigger
26
+
mechanic/actions/perform
27
+
```
28
+
29
+
[Learn about event subscriptions in Mechanic](https://learn.mechanic.dev/core/tasks/subscriptions)
30
+
31
+
## Documentation
32
+
33
+
# Demonstration: Create and update a table in Airtable
34
+
35
+
This task creates a new table in the Airtable base of your choice, and then populates it with demo data. Try it out to learn how the Airtable action works!
36
+
37
+
## Quick Start
38
+
39
+
1. Connect your Airtable account (Settings → Authentication → Airtable)
40
+
- For this demonstration you will need to grant the "Write Records" and "Write Base Schema
41
+
" scopes. Don't forget to adjust these scopes as you progress beyond this demo task.
42
+
2. Set two task options:
43
+
- Your Airtable account email
44
+
- The Airtable base ID you wish to use
45
+
3. Run the task
46
+
47
+
Look in your Airtable base for the generated table and data.
48
+
49
+
## Want to Learn More?
50
+
51
+
This task demonstrates how to:
52
+
- Create a new table in an Airtable base, with 3 common field types: string, datetime, and checkbox
53
+
- Handle API responses in Mechanic
54
+
- Add data to a table
55
+
56
+
Take a look at the task code to see exactly how it works, then use these examples in your own tasks.
57
+
58
+
Review the [Airtable API reference](https://airtable.com/developers/web/api) for information on the many ways their API can be used. Airtable also auto-generates API docs for your base and each table in it, which can be found at `https://airtable.com/{{ airtable_base_id}}/api/docs`. The specific field parameters for each table will be documented there, which is very helpful when developing code for adding/updating records.
59
+
60
+
## Installing this task
61
+
62
+
Find this task [in the library at tasks.mechanic.dev](https://tasks.mechanic.dev/demonstration-create-and-update-a-table-in-airtable), and use the "Try this task" button. Or, import [this task's JSON export](../../tasks/demonstration-create-and-update-a-table-in-airtable.json) – see [Importing and exporting tasks](https://learn.mechanic.dev/core/tasks/import-and-export) to learn how imports work.
63
+
64
+
## Contributions
65
+
66
+
Found a bug? Got an improvement to add? Start here: [../../CONTRIBUTING.md](../../CONTRIBUTING.md).
67
+
68
+
## Task requests
69
+
70
+
Submit your [task requests](https://mechanic.canny.io/task-requests) for consideration by the Mechanic community, and they may be chosen for development and inclusion in the [task library](https://tasks.mechanic.dev/)!
-- NOTE: Typically if a task performs multiple actions that need further processing, then the actions would pass along "meta" information to more easily distinguish between them. This was not done for this demo task to keep the action tags in the more common usage format.
# Demonstration: Create sheets and list and create files in Google Drive
2
+
3
+
Tags: Demonstration, Google Drive, Google Sheets, Integration
4
+
5
+
# Demonstration: Create Google sheets, and list and create files in Google Drive
6
+
7
+
* View in the task library: [tasks.mechanic.dev/demonstration-create-sheets-and-list-and-create-files-in-google-drive](https://tasks.mechanic.dev/demonstration-create-sheets-and-list-and-create-files-in-google-drive)
8
+
* Task JSON, for direct import: [task.json](../../tasks/demonstration-create-sheets-and-list-and-create-files-in-google-drive.json)
[Learn about task options in Mechanic](https://learn.mechanic.dev/core/tasks/options)
23
+
24
+
## Subscriptions
25
+
26
+
```liquid
27
+
mechanic/user/trigger
28
+
mechanic/actions/perform
29
+
```
30
+
31
+
[Learn about event subscriptions in Mechanic](https://learn.mechanic.dev/core/tasks/subscriptions)
32
+
33
+
## Documentation
34
+
35
+
# Demonstration: Create Google sheets, and list and create files in Google Drive
36
+
37
+
This task posts a demonstration message in the Slack channel of your choice. Try it out to learn how the Google action works!
38
+
39
+
## Quick Start
40
+
41
+
1. Connect your Google account in Mechanic (Settings → Authentication)
42
+
2. Set two task options:
43
+
- Your Google account
44
+
- Your choice of one or more of the Google action demos:
45
+
- Create a new Google Sheet
46
+
- List Google Drive files
47
+
- Create Google Drive file
48
+
3. Run the task
49
+
50
+
Look in your Google Drive for the example files if you ran one of the create demos. Otherwise, the list of Drive files will be output in the task run event log.
51
+
52
+
## Want to Learn More?
53
+
54
+
This task demonstrates how to:
55
+
- Create a new Google Sheet in your Google Drive
56
+
- With a dynamic file name
57
+
- Setting a sheet tab title
58
+
- Using a couple of common Sheet cell data types: string, boolean
59
+
- Listing a few fields from the first 10 files found in the connected Google Drive folder
60
+
- Alternate version which filters the search by files having "Mechanic" in the title
61
+
- Creating a simple text file in the root Drive folder
62
+
63
+
Take a look at the task code to see exactly how it works, then use these examples in your own tasks.
64
+
65
+
The Google Drive API documentation is primarily geared towards developers familiar with the Google API ecosystem. If the references below seem daunting, then consider trying out the [Google Drive or Google Sheet actions](https://learn.mechanic.dev/platform/integrations/google-drive-and-google-sheets) in Mechanic instead. (Note: there are demonstration tasks in the Mechanic library for each of those actions as well.)
Find this task [in the library at tasks.mechanic.dev](https://tasks.mechanic.dev/demonstration-create-sheets-and-list-and-create-files-in-google-drive), and use the "Try this task" button. Or, import [this task's JSON export](../../tasks/demonstration-create-sheets-and-list-and-create-files-in-google-drive.json) – see [Importing and exporting tasks](https://learn.mechanic.dev/core/tasks/import-and-export) to learn how imports work.
74
+
75
+
## Contributions
76
+
77
+
Found a bug? Got an improvement to add? Start here: [../../CONTRIBUTING.md](../../CONTRIBUTING.md).
78
+
79
+
## Task requests
80
+
81
+
Submit your [task requests](https://mechanic.canny.io/task-requests) for consideration by the Mechanic community, and they may be chosen for development and inclusion in the [task library](https://tasks.mechanic.dev/)!
0 commit comments