Skip to main content
prepare_placeholder_references Get the IDs for {{placeholder:ID}}: a tableReferenceId per column, before you write the content that uses them. Every standard placeholder for a table shows the document’s one row of it, so switching that row changes them all; to show several rows of the same table at once (A compared with B, a roster), use prepare_global_references. For a document you just created, pass its documentId.

Parameters

string
required
The ID of the table whose columns you want to reference.
array<string>
required
Array of column IDs to create references for.
string
Optional. If the user wants to link to a specific row, pass the row ID here. All placeholders will then show that row’s values.
string
The target document ID. Required when no document is open in context (e.g. after creating a new document via create_document). Falls back to the context documentId if omitted.