Limitation of Server Side Script (from the Frappe UI)

Dear community,

I know things can be done on the python side, but I am trying to understand the limitation of Server Script from the UI.

Says, I want to assign a new number to a field with following script,

doc.product_number = frappe.model.naming.make_autoname('X.###')

This give me, ‘NoneType’ object is not callable

From Server Side Script UI, what object are available and what aren’t?

image

Are there and document that gives more examples about the server script?

Thanks!

Hi there,

The server scripts use a significantly restricted environment for security reasons. You can read about the available API in the docs:

https://frappeframework.com/docs/v13/user/en/desk/scripting/script-api

1 Like

@peterg thanks for the fast response. That’s fair enough. Thanks!