Create new docname for a blank doctype via custom script

I want to insert data from doctype A to doctype B but in doctype B there are no docnames so i want to create new docname and fill data to it directly via custom script. Any suggestions ?

What do you mean by docname? Please explain your use-case with examples

1 Like

My usecase was from the custom script of doctype A, i wanted to create a new form id in doctype B which is blank.

Btw i figured it out, using method: frappe.client.insert