File attachments - limiting the number allowed in a category?
Hello, everyone - I've got the following set up
- custom Attachment category, availability of "File" set up on this rule
- a flow action/section where the user can upload files
I would like to know the following
- Is it possible to limit the number of attachments of this new category that are allowed? I'd like them to be able to attach other documents, as long as they don't choose this particular attachment category?
***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Carissa, thanks. This is very detailed, which is what I need. However, I must be doing SOMEthing wrong, as when I get to the point where I have one of my files attached, the entire drop down for "file category" is totally gone - not disabled, but gone as in not appearing on the screen,
In my test scenario, the File category will only appear when there are no File attachments; otherwise, the option does not appear in the dropdown. I am not sure how to show it in the dropdown but have it disabled. Maybe someone else will have feedback on that.
No, what I mean is, after initially adding my new category, the dropdown shows
My New Category
Which is fine. What I'm trying to do is prevent selecting "My New Category" on a 2nd attachment. When I put in my fat-fingered version of your suggestion, on the 2nd attachment, I don't even see a dropdown control. It's not disabled, it's not even showing on the screen at all.
I am not sure why the dropdown control disappears completely. What rule are you using for adding the attachments? I also found another function that could be used in the When rule. The library is WorkUtilities and the function name is pxIsAttachmentOfCategoryInCase.
Were you able to get this to work? I see Carissa has provided several good examples for you to use. If you are still having a copy, I would provide screen images to highlight your requirement and the issues you are encountering.