//previously I created "doc" with all filled fields
funcs = docs.map((doc) => {
frappe.call({
method: "frappe.client.insert", //creating but it keeps only saved
args: {
doc: doc // doc object
},
callback: function(r) {
// here I need something to submit this doc (r)
}
})
})
How could I submit this “r”?
I didn’t find a function for this, did I miss something?
@outerlook it was just an example, I did not realise you were submitting multiple docs. I think for your case @max_morais_dmm solution is perfect.
You need to browse the frappe app code to find out what methods are available, if you don’t find documentation. Try to search for frappe Developer cheatsheat.