Is it possible to add coments from py file?

Is it possible to add coments from py file & also can i add history which appears at the end of the page?

You can add comment from js file using

frm.timeline.insert_comment(“Comment”, “Comment string”)

u can use Workflow to update history

frm.timeline.insert_comment(“Workflow”, “history details”);

No idea about py file.commants are stored in _comments field of doctype table

Thank you so much @Hafees_Kazhunkil.
Great help from you !!!

1 Like