Skip to main content
NexaFlowTech Logo
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.

What is a DocType?

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.

Step 1: Create New DocType

bench new-doctype --module [module_name] [docname]

Step 2: Define Fields

Add fields like Data, Link, Select, Date, Currency, Table, etc. Each field has properties for validation, mandatory, and default values.

Step 3: Configure Permissions

Set role-based permissions to control who can read, write, delete, or submit documents.

Need Custom Development?

Our Frappe developers can build custom DocTypes and applications tailored to your business needs.

Chat on WhatsApp