• Ajay Kumar Lankipalle 8
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 6
    Replies
Hi,
I am trying to use VF email template as follows. The output is fine after sending the mail but the problem is it is not showing the preview before we send the mail.
VF Template
--------------------------------------
<messaging:emailTemplate subject="Thank you for your Support!" recipientType="Contact" relatedToType="Program__c">
<messaging:htmlEmailBody >
<html>
<body>
<img alt="Logo" src="https://XXXXXXXXXXX/servlet/servlet.ImageServer?id=015V00000004tUD&oid=00DV00000002MuC&lastMod=1330685229000" />
<p>{!relatedTo.Id}</p>
<c:ServiceComponent ProgramId="{!relatedTo.Id}"/>
<form>
<script type="text/javascript">
function confirmGetMessage() {
var theAnswer = confirm("Do you want to continue????");
if (theAnswer==true){
alert("You have triggered the approval process.");
}
else{
alert("You have not triggered anything.");
return false;
}
}
</script>
</form>
<br/><br/>
<br/><br/>
</body>
</html>
</messaging:htmlEmailBody>
<messaging:attachment renderas="pdf" filename="{!recipient.Name}-Service Form.pdf">
<html>
<body>
<h3></h3>
<c:ServiceComponent ProgramId="{!relatedto.Id}"/>
</body>
</html>
</messaging:attachment>
</messaging:emailTemplate>
-----------------------------------------------
Screenshot attached for your reference.
Can any one help me in this please?
Thanks,
AjayUser-added image
Hi All,

Here is my business requirement and I never worked on webservices. 

1. We have specif objects and fields to consume by Oracle.
2. Oracle will consume the webservice and then should be able to  updated few fields in SFDC.

My Assumptions:
Simply generate WSDL and provide them to consume the webservice?
or Do we have to write any classes for each object to expose the data?

Please help me, how I have to achieve this.

regards,
Ajay

  • August 05, 2014
  • Like
  • 0