我收到以下错误
“缺少参数列表后的”)
单击SFDC中的自定义按钮时。该按钮的目的是在我们的内部和社区环境中启动特定案例类型。
任何帮助表示赞赏!
{!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'");
最佳答案
尝试这个:
{
!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 = % 2 F500 % 2 Fo & RecordType = 0121 b0000004IKZ', '_parent');
}
var qr = sforce.connection.query("select Id from recordType where (name= 'Device Request') and sObjecttype = 'Case'");