Hello,
For couple days I was struggling with getting recipients out of DLP Incident. I managed to somehow access this collection, but I get “exception: NullPointerException ” at the end.
ContentItem contentItem = incident.getContentItem();
ExchangeItem exchangeItem = (ExchangeItem)contentItem;
And then for example in order to get atleast one recipients as a string:
String recipient = exchangeItem.getRecipients().iterator().next();
I just need to pull all recipients from the incident, but I get only null or i can’t get my plugin to work. I tried to follow example scripts and docs, but it doesn’t explain this specific case. I’ve seen some posts about it on the forums, but didn’t manage to find any solution here.
Please if someone can post here some example showing how to pull recipients, I would be really happy!
Cheers!