You need to sign in to do that
Don't have an account?
Jim Boudreaux
Use Javascript to Create Attachment
How does one use javascript to create a salesforce object, like an attachment, fill some fields and insert the object?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
How does one use javascript to create a salesforce object, like an attachment, fill some fields and insert the object?
Everything you need is here http://www.salesforce.com/us/developer/docs/ajax/index.htm
Creating accounts example: http://www.salesforce.com/us/developer/docs/ajax/index_Left.htm#StartTopic=Content/sforce_api_ajax_results.htm
Go through the sample code given below :
<script type = "text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>
<script src="../../soap/ajax/19.0/connection.js" type = "text/javascript"></script>
<script>
var Attachment = new sforce.SObject("Attachment");
Attachment.Title = "Att-1";
// Assign all medotery fields for the Attachment record
var result = sforce.connection.create([Attachment]);
</script>