powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] cmdlet to automatically process files in dropofflibrary

Open jamiet83 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [Using add-pnpfile and the ability to send values such as content type and title is really useful. However when I add a file to a content organizer dropofflibrary the file does not get routed based on content organizer rules until I go in to the files’ properties and click save]

Describe the solution you'd like A clear and concise description of what you want to happen. [I would like either a cmdlet to process any waiting files in a drop off library or be able to add a switch to add-pnpfile which means the file is processed immediately]

Describe alternatives you've considered Is there currently a way of solving your problem with existing cmdlets? Optionally through the use of other PowerShell Modules (for instance by using the Microsoft Graph cmdlets or the Microsoft SPO Management Shell) [a workaround is to simply wait 24hours for the content organizer timer job to run but it is not ideal waiting so long for a file to be routed]

Additional context Add any other context or screenshots about the feature request here.

jamiet83 avatar Jul 13 '21 20:07 jamiet83

I haven't tried this, so I'm thinking out loud. After you upload the file with Add-PnPFile if you change one of its properties with Set-PnPListItem will that trigger the content organizer rule? It's a cruddy workaround, but it might get you moving while you find a better solution.

ToddKlindt avatar Jul 13 '21 20:07 ToddKlindt

Hi many thanks for the suggestion but unfortunately it did not work, file remained in drop off library even with -systemupdate switch

Also tried checking out then in via cmdlets too.

jamiet83 avatar Jul 19 '21 11:07 jamiet83