Get a Table Instance
Note: Ensure you have installed the required package to use this SDK method.
You can get a table’s instance referring to it using its ID or name.
Get The Table Instance Using TableID
A table reference can be created by referring the table ID using the getTable() SDK method. The datastore reference used in the following code snippet is the component instance.
copy
const datastore = new Datastore();
const table = datastore.table(20660000000012118);
Get The Table Instance Using Table Name
A table reference can be created by referring the table name using the getTable() SDK method. The datastore reference used in the following code snippet is the component instance.
copy
const datstore = new Datastore();
const table = datastore.table('VendorShipments');
Last Updated 2026-07-02 14:51:41 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit