You need to sign in to do that
Don't have an account?
bobby-nc
Need help with inserting new record in custom object...
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>
Message Edited by bobby-nc on 02-29-2008 09:07 AM
Message Edited by bobby-nc on 02-29-2008 09:22 AM
Message Edited by bobby-nc on 02-29-2008 09:22 AM
Message Edited by bobby-nc on 02-29-2008 09:23 AM