You need to sign in to do that
Don't have an account?
ElenaCapta
problems with code, help!!
Hi, Anybody Know what is the proble in this code?? I'm new in SalesForce and don't get anything...
Please help me!!!
The code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Crear Una Cuenta</title>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Crear Una Cuenta</title>
</head>
<body >
<body >
<script language="javascript" src="https://www.sforce.com/ajax/beta1/sforceclient.js" type="text/javascript"></script>
<script language="javascript">
<script language="javascript">
Account objMyaccount = new Account();
objMyaccount.setName("Koka Kola");
objMyaccount.setWebsite("www.kokakola.com");
objMyaccount.setName("Koka Kola");
objMyaccount.setWebsite("www.kokakola.com");
sObject[] records = new sObject[] {objMyaccount };
SaveResult[] saveResults = sfdc.create(records);
String newID = saveResults[0].id;
SaveResult[] saveResults = sfdc.create(records);
String newID = saveResults[0].id;
if (saveResults[0].getSuccess())
{
// No errors, so we will retrieve the id created for this index
System.out.println("Attachment with id " + saveResults[0].getId());
}
else
{
System.out.println("Error during creation of attachment " + saveResults[0].getErrors());
}
{
// No errors, so we will retrieve the id created for this index
System.out.println("Attachment with id " + saveResults[0].getId());
}
else
{
System.out.println("Error during creation of attachment " + saveResults[0].getErrors());
}
</body>
</html>
</html>
Thanks!!!!
Not possible to parse.
Thank you!!:smileyhappy:
Elena
System.out.println("Error during creation of attachment " + saveResults[0].getErrors());
to
alert("Error during creation of attachment " + saveResults[0].getErrors());