I’ve written a script to mass decrypt a slew of messages from a mail DB. It’s fairly straight-forward – it iterates through the items in the items property of all the documents, decrypts them, and saves the document. No problem.
On selected documents, the Items property is returning as null, yet the documents has items and I can examine then when I bring the document up into the Notes UI. What gives? Why is the Items property being returned as null?