+ Start a Discussion
XactiumBenXactiumBen 

Problems with Enhanced Lists and calling Apex from Button

I have a button on a list view that was working fine previously.  When I switch to enhanced lists this button stops working with the following error:

 

"

A problem with the OnClick JavaScript for this button or link was encountered:

{faultcode:'soapenv:Client', faultstring:'Attribute "xmlns" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "execute".', }

"

 

Any ideas why this would be happening?

 

Code:

 

{!REQUIRESCRIPT("/soap/ajax/18.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/18.0/apex.js")} var list = {!GETRECORDIDS( $ObjectType.Account )}; var errorMsg = sforce.apex.execute("AccountClass", "execute", { accountIds : list }); if (errorMsg != 'success') alert (errorMsg);

 

 

 

DEV_NAVATARDEV_NAVATAR

Change "execute" method in AccountClass. Give someother name for the method. "execute" is a keyword using in SFDC.