Doc.insert() vs doc.save()

What is the difference between the two? Could I use one without the other or vice cersa in coding?

@Rabie_Moses_Santilla you can check this https://frappeframework.com/docs/v13/user/en/api/document#docsave for reference

doc.save will just call doc.insert if it’s a new doc.

2 Likes