I encountered an issue that states:
"Missing ) after argument list"
This problem arises when I attempt to click on a custom button within SFDC. The purpose of this button is to initiate a specific case type in both our Internal and Community environments.
Any assistance would be greatly appreciated!
{!REQUIRESCRIPT("/soap/ajax/28.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/28.0/apex.js")}
if('{!$Site.Prefix}'!=''){ window.open('{!$Site.Prefix}/500/e?retURL=%2F500%2Fo&RecordType=0121b0000004IKZ,'_parent');
}else{window.open('500/e?retURL=%2F500%2Fo&RecordType=0121b0000004IKZ,'_parent');}
var qr = sforce.connection.query("select Id from recordType where (name= 'Device Request') and sObjecttype = 'Case'");