1

I have a custom list inside a SharePoint modern communication site, and i want to prevent attaching more than one attachment per list item? is this possible through UI,power-shell or development?

Now i already read this similar article @ How to stop multiple file attachment in SharePoint list item attachment? but this will not work in remote event receivers, as in RER we can not access the properties.ListItem.Attachments Thanks

2 Answers 2

0

I'm assuming you meant ootb list attachments? Sharepoint list form can be done with some custom forms then from there you can limit the no of attachments by validating on form submit. But if you meant the OOTB form unfortunately there is no way to limit it.

But, you can do a post process where a workflow will run after a list is updated / created removing the excess attachments, workflows via SharePoint designer workflow(spd wf), nintex, msflow will do.

Let me know if the concept helps! :)

0

You can validate the Attachments field in a custom form only. First, you should design a custom form either with Power Apps or a 3-rd party tool e.g. Plumsail Forms. Once the form is ready, use what the platform offers for validating field values.

Since I'm working with Plumsail Forms really closely, I can recommend it and even the solution of a very similar problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.