endless-jadeE
Refine2y ago
7 replies
endless-jade

Subform to create related record

Using Supabase as a data provider and following the exemple in the CRM app, I am trying to create a related record as it is done in this exemple CRM app, however the data variable return in https://github.com/refinedev/refine/blob/8066c0c1d8bba422e1b38ee325a6f4bca811e95d/examples/app-crm/src/routes/companies/create.tsx#L110 is empty, so I can’t set the companyId using createdCompany. Is there anything special to do when using a different data provider than the one used in the CRM exemple app to get the id of the newly created record in a onFinish callback ?
GitHub
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility. - refinedev/refine
refine/examples/app-crm/src/routes/companies/create.tsx at 8066c0c1...
Was this page helpful?