AnsweredAssumed Answered

Print Email from Emails Detail view

Question asked by Indrajeet Latthe on Nov 2, 2017

I'm trying to print Email(sent) from it's Detail view. Basically I want print button there. 

I've added button in DetailViewSent.html and tried to use same code but it's failing.

I gave 

<td><input class="btn" type="button" value="Print" onClick="print()"></td>
function print() {
    SUGAR.email2.detailView.viewPrintable('24143c9e-374a-11e7-af5b-06c156d48849','af3d8ed6-9232-11e7-8b91-022c067e094d','sugar::Emails');
}

Yes, I'm trying with static values for now but this is not even working.
I'm trying to use pre-existing code for printing or I've to make whole thing from scratch?

Outcomes