Hi there.
Im trying to figure out how to go about saving the sender email automatically when a Issue is created. The sender email is saved in the timeline below, but how do you save it to a field in the form itself?
Hi @peterg,
I have thought about it and i would probably have to insert directly into the database from there and it will reflect in the field, but how would i insert this?
It’s called from erpnext/public/js/communication.js, which overrides/extends the default frappe communication.js
You wouldn’t need to call the database directly, just add an arg to the js call and then use that argument in the frappe.get_doc call. Honestly, I’m not sure why code related to the issue doctype is being included in the frappe codebase in the first place, but I’m still trying to wrap my head around the Inbox design.
Firstly i got 2 email accounts.
Secondly i got 2 issue doctypes, The second one has been customized because this issue has a certain purpose. Each email appends to its own Issue doctype.
And lastly i dont make a issue i email the account and issue is created automatically
Ah, if you’re doing it by the email account’s attachment to doctype method, modifying the js API call won’t help. You’ll have to look at the append to doctype code.