Creating a comment via REST API in doctype of Customer

I’m looking for the way creating a comment via REST api in doctype of Customer.

I’m working with Frapperclient library
(frappe-client/frappeclient.py at master · frappe/frappe-client · GitHub)
And also searched google to find a way.
However, creating a comment via api is still unsolved…

Please… someone help me. Let me know the way creating a comment via REST api in doctype of Customer.

@bsysy17,

You can use the add_comment api to add the comment in Customer doctype.

You will need to provide the following arguments to the API

doc:{
	doctype: "Communication",
	communication_type: "Comment",
	comment_type: comment_type || "Comment",
	reference_doctype: "Customer",
	reference_name: "Cust-00001",
	content: "This is a comment !!",
	sender: "Administrator"
}

for reference please check the following link.
https://frappe.github.io/frappe/current/api/desk/form/frappe.desk.form.utils

Thanks,
Makarand

1 Like

Problem is solved!!! thanks a lot!!
@makarand_b