I’m trying to build a server script that will update a Lead when a Communication is created.
I keep getting the error “TypeError: Document._save() got an unexpected keyword argument ‘first_name’”
I’m assuming that the proper method to use is doc.save(), so I must be using it wrong?
doc = frappe.get_doc('Lead','CRM-LEAD-2023-00519')
doc.save(
first_name='test'
)