You need to sign in to do that
Don't have an account?
saad mechiche alami
Javascript Error when escalating Case to Queue
Hello,
I am currently using the following Javascript Code to assign a case to a queue , by pressing a button called: Escalation to CC I get the attached jpg error message
Here is the code:
Can you please help , thanks
I am currently using the following Javascript Code to assign a case to a queue , by pressing a button called: Escalation to CC I get the attached jpg error message
Here is the code:
OnClick JavaScript {!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} var caseObj = new sforce.SObject('Case'); caseObj.Id = '{!Case.Id}'; caseObj.OwnerId = '{!$Setup.Agora_settings__c.CC_queue_ID__c}'; caseObj.Status = "Assigned"; var result = sforce.connection.update([caseObj]); window.location.href=window.location.href;
Can you please help , thanks
or
window.location = '/'+"{!case.Id}";
give an alert statement by including one line after one line i.e.
first
{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} give this
and
put an alert after this --> check alert is displaying or not.. do the same thing by adding each line of your code and add the alert after the line.. you can easily track...
var result = sforce.connection.update([caseObj]);
window.alert(result)
I get the following error message:
a problem with the on click javascript for this button or link was encountered: unexpected token }
A Problem with the onClick javascript for this button or link was encountred:
missing catch or finally after try