I would think that the court clerk can provide a document showing that the case was dismissed (and why).
In some states, court cases are posted on a county or state website and you may be able to print that document to submit to the collections agency.