• bobby-nc
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
Hi, I am trying to create an s-control that will create a new quote, which is a custom object, and populate certain fields with values from an existing opportunity.  Whenever I run the s-control, I receive a javascript error: Expected ";".  Am I missing something?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head> 
<title>Add Quote</title>
<script type="text/javascript" src="/soap/ajax/11.0/connection.js"></script>
</head>
<body>
<script type="text/javascript"> 
var objQuote = new sforce.SObject("Quote__c");
//insert fields...
sforce.connection.create([objQuote]);
</script>
</body> 
</html>

 
Hi, I am trying to create an s-control that will create a new quote, which is a custom object, and populate certain fields with values from an existing opportunity.  Whenever I run the s-control, I receive a javascript error: Expected ";".  Am I missing something?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head> 
<title>Add Quote</title>
<script type="text/javascript" src="/soap/ajax/11.0/connection.js"></script>
</head>
<body>
<script type="text/javascript"> 
var objQuote = new sforce.SObject("Quote__c");
//insert fields...
sforce.connection.create([objQuote]);
</script>
</body> 
</html>

 
Greetings,
 
Has anyone seen any reference in Salesforce on how to automate a mail merge, or succesfully coded this?  For example, on creation of an object, I would like to automatically create a document containing record information.
 
I know I can code this on our back end through vb.net and then post that doc to SF as an attachment....just wondering what can be done in Salesforce either through the Web API, Workflow, etc.
 
Any help is appreciated!
 
Thanks,
Phillip
  • February 27, 2008
  • Like
  • 0