Guest User

Untitled

a guest
Jan 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. {!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
  2. {!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
  3.  
  4. var newRecords = [];
  5. var c = new sforce.SObject("Activity/Event");
  6. c.id ="{!Campaign.Id }";
  7. c.Community_Deleted__c = true;
  8. newRecords.push(c);
  9. result = sforce.connection.update(newRecords);
  10. window.location.reload();
Add Comment
Please, Sign In to add comment