I am creating JavaScript button for creating a new record of a custom object my code looks as follow.
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/support/console/31.0/integration.js")}
var newFollowUp= new sforce.SObject("Follow_up__c");
newFollowUp.name = 'New FollowUp';
newFollowUp.Case__C = {!Case.Id};
var result = sforce.connection.create([newFollowUp]);
if(result[0].getBoolean("success")){
window.location = "/" + result[0].id + "/e";
}else{
alert('Could not create record '+result);
}
when I click on this button I get error saying
Invalid or unexpected token