function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

CloseTab Service Cloud Console in Button

Button Code Error Cannot Call Method 'closeTeb' of undefined


var Relationship__c = new sforce.SObject("Relationship__c"); = "{!Relationship__c.Id}"; 
Relationship__c.Mark_for_Delete__c = true;
var result = sforce.connection.update([Relationship__c]);
if (result[0].getBoolean("success")) 
// Refresh window 
window.location.reload();'', '_self', '');

alert("Error saving event"); 

 Thank you so much.