Custom Widget - Excalidraw & Grist- a nice combo

The reply might already be a bit late, but it may still help someone else:

In HTML code, there is the following line:
['UpdateRecord', 'Excadata', this.currentRecordId, { excalidraw: saveData }]

Here, 'Excadata' is the table ID. If your table in Grist has a different name (for example, Table1 or someth ), Grist rejects the save request because it cannot find a table named Excadata. Therefore, you need to either rename this value to match your actual table name, or modify the code so that it automatically determines the currently selected table:

const tableId = await grist.getTable().getTableId(); 
await grist.docApi.applyUserActions([
    ['UpdateRecord', tableId, this.currentRecordId, { excalidraw: saveData }]
]);
1 Like