Frappe client insert issue

I am using frappe.client.insert method to make enteries but i also had to trigger another frappe call on saving the doctype. and i am inserting multiple docs so how to save also on inserting

What i want to do is after inserting that doc, save it also as by default as the docs inserted are not saved by default, untill i refresh the newly inserted one

Hi @nikzz,

sorry, to me it is not quite clear what you are trying to achieveā€¦ I am guessing a custom script that uses frappe.client.insert, can you share some code snippets?

Solved, Just changed my event to refresh and it worked like charm