How to check SharePoint ListItem event receiver updating event attachment check

Appaji Sirangi 1 Reputation point
2024-04-04T21:42:59.62+00:00

I have a requirement to check SharePoint on prem list Item attachments count and show error while saving if no attachment to that Item.

I don't find any way to get information from afterproperties, am I missing anything here, can you point me if any options to check number of attachments from afterproperties.

Thank you.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.