• rmill
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi,

 

I was wondering if there is a way to reference the most recent attachment in Opportunities and attach it to a custom email template.

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!Opportunity.Id}&p3_lkid={!Opportunity.Id}&&p2_lkid={!Opportunity.Account_HolderId__c}&template_id=00XZ0000000Dgzm&new_template=true');

 

That is the code for the button the user will click after they have created a contract which is than re attached to the Opportunity.

 

Thanks in advance.

  • October 25, 2012
  • Like
  • 0

I am currently trying to have a PDF created based on a field update.

The issue is that it seems that getContent() and getContentAsPDF() don't work when called within a trigger. 

 

Does anyone know a work around for this or is this something that I won't be able to accomplish.\

 

Thanks

  • August 10, 2012
  • Like
  • 0

I am currently trying to have a PDF created based on a field update.

The issue is that it seems that getContent() and getContentAsPDF() don't work when called within a trigger. 

 

Does anyone know a work around for this or is this something that I won't be able to accomplish.\

 

Thanks

  • August 10, 2012
  • Like
  • 0