You need to sign in to do that
Don't have an account?
Amphitrite
OnClick Custom Button call VF error 'URL No Longer Exists'
I'm trying to call a VF page from my custom button OnClick. But getting the error 'URL no longer exists'. Any suggestions?
{!REQUIRESCRIPT("/soap/ajax/8.0/connection.js")}
var records = {!GETRECORDIDS($ObjectType.Case)};
var newRecords = [];
if (records[0] == null)
{
alert("Please select at least one row")
}
else
{
for (var n in records) {
var c = new sforce.SObject("Case");
c.id = records[n];
c.XLS05__c =1;
newRecords.push(c);
}
result = sforce.connection.update(newRecords);
window.location = '/Apex/CaseCollider';
}
Its the capital 'A' in 'Apex' - change this line of code:
to
the apex page names are case-agnostic, but the directory obviously isn't.