Gets all SDM records in a store for a specific sdmSchemaId. The type of the records should be passed as a generic template to be type safe.
import { Sdm } from '@showpad/experience-app-sdk'interface MyRecordType { field1: number field2: string}const records = await Sdm.getRecords<MyRecordType>( '<sdmStoreId>', '<sdmSchemaId>',) Copy
import { Sdm } from '@showpad/experience-app-sdk'interface MyRecordType { field1: number field2: string}const records = await Sdm.getRecords<MyRecordType>( '<sdmStoreId>', '<sdmSchemaId>',)
Generated using TypeDoc
Gets all SDM records in a store for a specific sdmSchemaId. The type of the records should be passed as a generic template to be type safe.
Example