Post api for relational field (adding already existing record)

I have one table with companyId as relational field

Now i want to make a post api call with codeless


But the relational field is giving issue
for companyId im passing objectId of already existing company, it says companyId column not found

Hello @Sneha_Borkar!

You’re doing everything right, but to add a relation you need to pass an object: objectId = '...'.
If you pass an object, the issue is probably where you’re getting this data from. Try printing dsarDetailsForm in the console and make sure the companyId exists and has the correct value.

You might also find our blog article on the Deep Save API helpful.

Regards,
Alexander

Thank you @Alexander_Pavelko