I have a requirement that on dragging a Email to the salesforce zimlet , a salesforce case needs to be generated for that particular account whhich the user the user selects . I have modified the code for sforce.js
Com_Zimbra_SForce.prototype.dlg_addNoteToAccounts function by adding the following lines
var jds = [];
for(acctId in accounts){
alert ("Account Id before pushing is " + acctId );
jds.push({ AccountId : acctId });
}
alert("The length of jds is " + jds.length);
for (i = 0; i < jds.length; ++i) {
jds[i].Subject = props.Title;
jds[i].Description = props.Body;
jds[i].Status = 'New';
jds[i].Origin = 'Email';
}
this.createSFObject(jds, "Case", function() {
this.displayStatusMessage("Saved " + jds.length + "My Cases."); });
I get the saved message but the cases are not generated in the salesforce.com website .
Kindly help me out
Thanks in Advance


LinkBack URL
About LinkBacks

