_getData

Returns data from each row of an Asset Table

Parameters

tid

The ID of the Asset Table containing this row

aid

The ID of the Asset which has the table containing this row

Example

FM_api('AssetTable_getData',[
  'aid'=>'466183',
  'tid'=>'1689678663502'
  ]
);

Results

On Success

[
    {
    "id":"12",
    "table_id":"1689691190237",
    "asset_id":"466183",
    "data":"{
              \"1\": \"Test1A\",
              \"2\": \"Test2A\",
              \"3\": \"Test3A\",
              \"4\": \"Test4A\"
         }",
    "cdate":"2023-07-18 14:41:21",
    "last_edited":"2023-07-18 14:41:21"
    },
    {
    "id":"13",
    "table_id":"1689691190237",
    "asset_id":"466183",
    "data":"{
              \"1\": \"Test1B\",
              \"2\": \"Test2B\",
              \"3\": \"Test3B\",
              \"4\": \"Test4B\"
         }",
    "cdate":"2023-07-18 15:14:35",
    "last_edited":"2023-07-18 15:14:35"
    }
]

In the above result, the Asset Table had 2 rows, each with 4 entries

On Failure

If the "aid" parameter is not present or less than 0:

{"error":"missing or invalid parameter: aid"}

If the "tid" parameter is not present or less than 1:

{"error":"missing or invalid parameter: tid"}

Last updated