2016-02-29 106 views
1

參數列表我「之後的參數列表中缺少)」失蹤)後SFDC

在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'"); 
+0

的兩個你'window.open()的調用'需要的逗號前收盤報價。 – Egor

回答

0

試試這個:

{ 
    !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'");