Skip to main content

getFormsData

Searching for all form data.

FormData?.getFormsData( langCode?, offset?, limit? );

Minimal example

const value = await FormData.getFormsData()
Schema

langCode: string
Language code. Default: "en_US"
example: "en_US"

offset: number
Parameter for pagination. Default: 0
example: 0

limit: number
Parameter for pagination. Default: 30
example: 30

This method creates form data objects by sending a request to the API. It accepts an array of objects of type IFormsPost as the request body to provide the necessary form data. It returns a Promise that resolves to the created objects.

Example response

{
"items": [
{
"id": 285,
"formIdentifier": "test-form",
"time": "2025-07-21T01:54:30.043Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
}
],
"attributeSetIdentifier": "form"
},
{
"id": 284,
"formIdentifier": "file_form",
"time": "2025-07-21T01:49:34.662Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
},
{
"marker": "file",
"type": "file",
"value": [
{
"filename": "files/project/page/3492/editor/errors-1751677276135-1753062574462.md",
"downloadLink": "https://stage.oneentry.cloud/cloud-static/files/project/page/3492/editor/errors-1751677276135-1753062574462.md",
"size": 4463
}
]
}
],
"attributeSetIdentifier": "form"
},
{
"id": 283,
"formIdentifier": "test-form",
"time": "2025-07-21T01:49:33.957Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
}
],
"attributeSetIdentifier": "form"
},
"..."
],
"total": 229
}
Schema

items: IFormDataEntity[]
Array of form data objects.
example:

[
{
"id": 1,
"formIdentifier": "form",
"time": "2025-06-06T19:07:45.993Z",
"formData": {},
"attributeSetIdentifier": "form",
"actionMessage": "Action message string"
}
]

total: number
Total number of found records.
example: NaN