Forum Discussion
Move files based on user department
- Sep 02, 2019
Hi JustinR
Based on your scenario (assuming I understand it right), I would save the new document to the users Department library FIRST and then add in the file attributes, etc once it's been created there.
It sounds to me that the drop-off library is purely a transactional place that you don't really need if you just generate the file in the desired location up front.
Before you create the new file, use Get user profile (V2) to get the users account attributes (use their email as UPN) and then the Department attribute could be used as part of the location path.
Hope that makes sense?
If I've misunderstood anything, please let me know and I can revise the suggestion above.
Cheers and best wishes
Damien
Hi JustinR
Based on your scenario (assuming I understand it right), I would save the new document to the users Department library FIRST and then add in the file attributes, etc once it's been created there.
It sounds to me that the drop-off library is purely a transactional place that you don't really need if you just generate the file in the desired location up front.
Before you create the new file, use Get user profile (V2) to get the users account attributes (use their email as UPN) and then the Department attribute could be used as part of the location path.
Hope that makes sense?
If I've misunderstood anything, please let me know and I can revise the suggestion above.
Cheers and best wishes
Damien