Rank 1: Thread
Hi, everyone. Anyone that could lend me a hand with Airtable automations here? I'm programming an Airtable automation to push newly created records on a table to a Cloud collection. This is an extract of the code:
...const about_us = inputConfig.about_usvar data = { "company_name": company, ... "about_us": about_us}let createDocResponse = {}
let request = await fetch(ENDPOINT + CREATE_PATH, { "method": 'POST', "documentId": "ID.unique()", "data": JSON.stringify(data), "headers": { 'Content-Type': 'application/json', 'X-Appwrite-Response-Format': '1.4.0', 'X-Appwrite-Project': PROJECT_ID } });
createDocResponse = await request.json();console.log(createDocResponse)And this is the response for the request:
{message: "Param "documentId" is not optional.", code: 400, type: "general_argument_invalid", version: "0.11.8"}
Fetch is supported out of the box on Airtable automations. Not sure how to adapt the client REST call on https://appwrite.io/docs/references/cloud/client-rest/databases. Your guidance, help, insights, will be highly appreciated.