Hey @DavidFJones,
I was able to create a HubDB table with both the video and foreign id as the columns field type:
Here’s my code:
{
"name": "Test Table via API",
"columns": [{
"name": "videotestapi",
"label": "videotestapi",
"id": 1,
"foreignIdsById": {},
"foreignIdsByName": {},
"type": "VIDEO"
},
{
"name": "fidapi",
"label": "fidapi",
"id": 2,
"foreignTableId": 2612853,
"foreignIds": [{
"id": 27798116643,
"name": "27798116643",
"type": "foreignid"
},
{
"id": 27798116644,
"name": "27798116644",
"type": "foreignid"
},
{
"id": 27810438617,
"name": "27810438617",
"type": "foreignid"
},
{
"id": 27810438621,
"name": "27810438621",
"type": "foreignid"
}
],
"foreignIdsById": {
"27798116643": {
"id": 27798116643,
"name": "27798116643",
"type": "foreignid"
},
"27798116644": {
"id": 27798116644,
"name": "27798116644",
"type": "foreignid"
},
"27810438621": {
"id": 27810438621,
"name": "27810438621",
"type": "foreignid"
},
"27810438617": {
"id": 27810438617,
"name": "27810438617",
"type": "foreignid"
}
},
"foreignIdsByName": {
"27810438617": {
"id": 27810438617,
"name": "27810438617",
"type": "foreignid"
},
"27810438621": {
"id": 27810438621,
"name": "27810438621",
"type": "foreignid"
},
"27798116644": {
"id": 27798116644,
"name": "27798116644",
"type": "foreignid"
},
"27798116643": {
"id": 27798116643,
"name": "27798116643",
"type": "foreignid"
}
},
"type": "FOREIGN_ID"
}
]
}
I’d advise for you to create the foreign ids column on the UI for one time so that you can use the Get details for a specific table to retrieve all the foreign ids values.
In regards to child table, I’m not seeing any field type named as child table. Am I missing something here?