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.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,971 questions
0 comments No comments
{count} votes

Your answer

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