Frappe Tutorial
How to Create Custom DocTypes in Frappe Framework
18 min readMay 18, 2026
DocTypes are the building blocks of any Frappe application. Whether you're customizing ERPNext or building a custom SaaS app, understanding DocTypes is essential.
A DocType in Frappe is like a database table with a UI. It defines the structure of your data - fields, permissions, and behavior. Examples include: Customer, Sales Order, Employee, Leave Application.
bench new-doctype --module [module_name] [docname]Add fields like Data, Link, Select, Date, Currency, Table, etc. Each field has properties for validation, mandatory, and default values.
Set role-based permissions to control who can read, write, delete, or submit documents.
Our Frappe developers can build custom DocTypes and applications tailored to your business needs.