What is Server Script?
Server Scripts in ERPNext are Python snippets that run on the server for document events, API calls, or scheduled jobs — enabling custom business logic without a full custom app.
Types of Server Scripts
Go to Settings → Server Script → New. Choose Script Type: DocType Event (runs before/after save, submit, cancel, delete), API (creates a new REST endpoint callable via URL), or Scheduler Event (runs on a cron schedule). Write Python using the frappe API.
Server Script vs Custom App
Server Scripts are ideal for quick customisations — no deployment needed. For complex integrations, database-heavy logic, or version-controlled customisations, a Custom Frappe App is more appropriate. Server Scripts cannot access the file system or run system commands.
Infonoxe Technologies specialises in ERPNext implementation and custom software for Indian businesses.
Related Terms
Implement ERPNext for Your Business
Expert ERPNext implementation, customisation, and support for Indian businesses.
