Mass update case Status - Salesforce -


i looking way mass update case status , leave success message or failure message failed case id. have validation rules , triggers update or cases. need keep show @ least first failed case id in error message.

is there way put variable in validation rule error message? or explicitly string?

i use validation rule cant show failed case in error message because cant put variable in error message.

check link might http://appexchange.salesforce.com/listingdetail?listingid=a0n30000003ilefeas

you need use before trigger in case , compare list of selected cases before , after update.

or can create custom button , add page , run desired javascript check changed before , after.

something :

{!requirescript("/soap/ajax/13.0/connection.js")}   var idarray = {!getrecordids($objecttype.case)};  var err = [];  var caseobj;   (i=0; i< idarray.length ; i++){      caseobj = new sforce.sobject("case");      caseobj.id = idarray[i];      caseobj.status = *** //change status here;     var result = sforce.connection.update([caseobj]);       if (result[0].success=='false') {          err.push("\n"+result[0].errors.message + " case id "+idarray[i]);      }   }   if(err.length >0)  {          alert(" following cases have failed change status: \n\n" +err);  }   location.reload(true); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -