# Lark Base

The Lark Base node allows you to automate work in Lark Base, and integrate Lark Base with other applications and works seamlessly with other applications such as Lark Docs, Lark Messenger,... N8N has built-in support for a wide range of Lark Base features, including such as task management, CRM system management, recruitment process management, personnel/shift, store crew, revenue by individual, department, store in a specific time, etc. ..

On this page, you'll find a list of operations the Lark Base node supports and links to more resources.

{% hint style="info" %}
**Credentials:** Refer to [Lark credentials](https://open.larksuite.com/document/server-docs/getting-started/api-access-token/auth-v3/tenant_access_token_internal) for guidance on setting up authentication.
{% endhint %}

## Basic Operations&#x20;

* Apps
  * Copy App
  * Create App&#x20;
  * Get App Info
  * Update App Name
* Table&#x20;
  * Create Table&#x20;
  * Batch create table
  * Delete table
  * Batch delete table
  * Update data table
  * List all tables
* Dashboards
  * Duplicate Dashboard
  * List dashboards
* View
  * Update view
  * Get View
  * List Views
  * Add View
  * Delete View
* Form
  * Patch form
  * List form
  * Patch form fields
  * List form fields
* Record
  * List records
  * Create a record
  * Update a record
  * Delete a record
  * Create records
  * Update records
  * Delete records
* Field
  * List fields
  * Create field
  * Update field
  * Delete field
* Advanced permission
  * List roles
  * Create role
  * Delete role
  * Update role
  * Batch delete members
  * Batch create members
  * List members
  * Create member
  * Delete member

## Example Usage

This workflow allows you can add an empty data table containing only index columns, or specify some initial fields. This example usage workflow would use the following nodes. - [Start](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.start/) – Lark Authentication – Lark Base

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2FM4SESKxVdDw4GOja0kOd%2Fimg_v2_d60b1bc2-f002-4070-a363-e7f47e6275bh.jpg?alt=media&#x26;token=7e879a6c-6405-4fc7-a7a6-aa2bb3295641" alt=""><figcaption></figcaption></figure>

1. Start node

&#x20; The start node exists by default when you create a new workflow.

2. Lark Authentication node

&#x20; We will use the Lark Authentication node to get the values of the tenant access token

* Click on the *Add node or drag to connect* button and enter *Lark Authentication* in the search nodes box.
* Select *Create New Credential* from the dropdown list.
* Enter your app ID in the *App ID* field.
* Enter your app secret in the *App Secret* field.
* Click on *Save* to save credentials.
* Turn off the popup and click on *Execute Node* to run a node.

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2FHXc7MZfoWA2KmMPelzHw%2Fimage.png?alt=media&#x26;token=51e8d5f9-a037-4748-8ee3-10b4d161064b" alt=""><figcaption><p>In this screenshot, you will notice that the node sets the value for create new credential.</p></figcaption></figure>

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2F0G9achumkTD8CPdsrEUn%2Fimage.png?alt=media&#x26;token=c0f948e5-30f3-4ea2-a9ef-55ea197f6cdc" alt=""><figcaption><p>In this screenshot, you will notice that the node sets the value for App ID and App Secret.</p></figcaption></figure>

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2F5XbGCnLB6Jj2JGzh8Sj8%2Fimg_v2_02f5678d-10b1-4714-aba0-22dcf1d1b94h.jpg?alt=media&#x26;token=a8d85ea8-e05e-4c07-bfd8-d4f47d3c6586" alt=""><figcaption><p>After executing Lark Authentication node</p></figcaption></figure>

3. Lark base node (Append)

We will use the create table action in the Lark base node to set the values for the name, default view name, and fields for a new table.

* Click on the Add node or drag to connect button and enter Lark Base in the search nodes box.
* Search create table in the search Lark Base Actions box.
* Enter your tenant access token in the *Tenant Access Token* field.
* Enter your [app token](https://app.gitbook.com/o/iYB4Gq7E4A5Saq9gnovN/s/bKSyz9raClfug01cr4Yb/) in the *App Token* field.
* Enter your [table name](https://app.gitbook.com/o/iYB4Gq7E4A5Saq9gnovN/s/bKSyz9raClfug01cr4Yb/) in the *Table Name* field.
* Enter your default view name in the *Default view Name* field.
* Click the add field button to add the *Field name and Type* for the table.
* Click *Execute node to run a node.*

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2F0Fl7jNuYIon8Eu3eNztZ%2Fimg_v2_b5fa09c8-ba12-4f60-9c9d-1be5d070e38h.png?alt=media&#x26;token=1047fe7b-7a68-42ea-b043-a149fc0f38b9" alt=""><figcaption><p>In this screenshot, you will notice that the node sets the value of Name, Default view name and Fields.</p></figcaption></figure>

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2FVrucjqsJEQRYHXIiJ2ib%2Fimage.png?alt=media&#x26;token=dcc9e18f-7c8c-47f5-9ef4-25460df4197f" alt=""><figcaption><p>After executing create table action of Lark Base node</p></figcaption></figure>

###

### How to get the App token and table token

you enter the lark base you want to use and see the URL in the lark base you will see like the picture below

<figure><img src="https://943070617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKSyz9raClfug01cr4Yb%2Fuploads%2FsHys4bzWoMWJtFftONDr%2FApp%20token.png?alt=media&#x26;token=9a2ab543-4fa5-4d18-8655-503aaa10afe4" alt=""><figcaption></figcaption></figure>

### Notice

Lark has a lot of types so you have to input the right data for each type<br>

* Calendar Time You have to enter the value same as this: 2023-10-18T17:02:08.000Z&#x20;
* Number You have to enter values like this:12,1234,23 (  Don't have String in there)
* String You have to enter values like this: 12abc,56cdf
* The checkbox has the values just in  true or false
