I am looking for a way to mass update case Status and leave a success message or failure message with failed case ID.
I currently have validation rules and triggers for update or cases. But I need to keep show at least the first failed case ID in the error message.
Is there a way to put a variable in the validation rule error message? Or its explicitly string?
I currently use a validation rule but I cant show the failed case in my error message because I cant put a variable in the error message.
Check this Link it might help you http://appexchange.salesforce.com/listingDetail?listingId=a0N30000003IleFEAS
You need to use a before trigger in this case and compare the list of selected cases before and after the update.
Or you can create a custom button and add it to the page and run the desired javascript to check what changed before and after.
something like this :