Grist node#
ใช้ Grist node เพื่อทำงานอัตโนมัติใน Grist และเชื่อมต่อ Grist กับแอปอื่นๆ ได้เลย n8n รองรับฟีเจอร์ของ Grist หลายอย่าง เช่น การสร้าง อัปเดต ลบ และอ่าน rows ใน table
ในหน้านี้จะมีรายการ operations ที่ Grist node รองรับ พร้อมลิงก์ไปยังแหล่งข้อมูลอื่นๆ
Credentials
โปรดดู Grist credentials สำหรับคำแนะนำการตั้งค่าการยืนยันตัวตน
Operations#
- Create rows in a table
- Delete rows from a table
- Read rows from a table
- Update rows in a table
Templates and examples#
Get the Row ID#
ถ้าต้องการอัปเดตหรือลบ record ใดๆ ต้องใช้ Row ID โดยมี 2 วิธีในการหา Row ID:
สร้างคอลัมน์ Row ID ใน Grist
สร้างคอลัมน์ใหม่ในตาราง Grist ของคุณ แล้วใส่สูตร $id
ใช้ Operation Get All
Operation Get All จะคืนค่า Row ID ของแต่ละ record พร้อม fields
สามารถดึง Row ID ได้ด้วย expression {{$node["GristNodeName"].json["id"]}}
Filter records when using the Get All operation#
- เลือก Add Option แล้วเลือก Filter จาก dropdown
- สามารถเพิ่ม filter ได้หลายคอลัมน์ ผลลัพธ์จะรวมเฉพาะ records ที่ตรงกับทุกคอลัมน์
- สำหรับแต่ละคอลัมน์ สามารถใส่ค่าหลายค่าโดยคั่นด้วย comma ผลลัพธ์จะรวม records ที่ตรงกับค่าใดค่าหนึ่งในคอลัมน์นั้น