Hi
I need to send text to a linked record field instead of the record id in the same way as if I paste text into the field or if I do it with integromat (smart links) or parabola (typecast: true) but from an airtable scriptig block.
recordsArray.push({
fields: {
"PID": formatted_date + " | " + (i+1) + " : " + record.getCellValue("PKEY"),
"production date": current_datetime,
"Group": record.getCellValueAsString("group"),
"Sku": record.getCellValueAsString("txtsku"),
"lr": record.getCellValueAsString("txtsku"),
"Product SKU": [{id:record.id}]
}
})
I was hoping I could simply do this…
recordsArray.push({
fields: {
"PID": formatted_date + " | " + (i+1) + " : " + record.getCellValue("PKEY"),
"production date": current_datetime,
"Group": record.getCellValueAsString("group"),
"Sku": record.getCellValueAsString("txtsku"),
"lr": record.getCellValueAsString("txtsku"),
"Product SKU": [{id:record.id}]
},
typecast: true
})
Is there a way I can call the API from a scripting block and then do it in the same way Parabola does it for example?
{
"fields": {
"inventory link":["{id}"],
"order code":"{order code}",
"sku":"{sku}",
"order qty":"{order qty}",
"subtotal price":"{subtotal price}",
"total price":"{total price}",
"order datetime":"{order datetime}",
"order number":"{order number}",
"variants: id":"{variants: id}"
},
"typecast": true
}