Hello,
I am in the process of building a flow for managing document policies in the business,
The trigger should send an email to the Document Owner when the modified date is = to 365 days, the issue I'm also having is that some of the Document Owners are empty so I don't want the workflow to trigger or another option is send an email to an administrator to manage getting these documents updated.
I would appreciate any improvements / suggestions as to what I have already built so far, see below:
Solved! Go to Solution.
Hi @ClaireAllen ,
If the type of Document Owner field is Person(not allow multiple selections), you could use null to check if this field is empty.
Flow configuration:
Hope this helps.
Best Regards,
Hi there. A couple of options:
There are probably some other ways to handle this, but that's what I've got 🙂
Keep us posted.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Hi!
My suggestion is:
1.-hover the mouse over the "Document Ow..." dynamic content currently assigned to 'Send an email' 'To' input.
Write down the text displayed. It should be something similar to:
items('Epply_to_each')?['Document...
You can add a Condition action block inside your apply to each, then:
-assign the following expression on the left side of your condition rule:
empty(<the text displayed when hovering the mouse here>)
-assign the following expression on the right side of your condition rule:
true
Now your flow execution will take the 'true' (Yes) branch if your current iteration column was empty, whereas will take the 'false¡ (No) brach when the column was not empty
Please take a try, if your new flow design still fails, please share a screenshot for further support
Hope this helps
Proud to be a Flownaut!
Hi @ClaireAllen ,
If the type of Document Owner field is Person(not allow multiple selections), you could use null to check if this field is empty.
Flow configuration:
Hope this helps.
Best Regards,
Hello,
I have tried this method first,
I've added the condition, and test the workflow and all seems to run okay,
I'm now not sure about the Get Past Time & Get Files (properties only)
The filter query is as follows
So my understanding is that this would get the documents based on 12 months (past time)
I have also removed the Get Files that I had in the apply to each and now only have the condition as mentioned to add.
My aim is to get documents when the modified is 1 year to send an email to the document owner to review the document.
Regards
Claire
Hi again!
So with the approach you just described, 'Get files -properties only-' output includes only documents modified 12 months ago, according to your requirements, right?
If so, you still have a problem if any of them do not have 'Document owner'. So you probably need to add an Apply to each' action block, assign as its input 'Get files -properties only-' output, then implement a Condition inside to get rid of Files without 'Document owner'. Several approaches proposed in this same thread from both @edgonzales @v-bacao-msft and me. On the proper branch of the condition add the 'Send an email'.
Please let us know your progress
Thanx!
Proud to be a Flownaut!
Hi @ClaireAllen ,
Please try to change "eq" in Filter Query to "le".
Best Regards,
Hello @v-bacao-msft ,
I've changed the eq to le,
the only thing at the moment, is that the workflow is running but I don't feel it's working how it should be,
The workflow has only identified one file
Last modified Dec 2018, but there are at least 100 documents that have not been modified for over a year.
The Document Owner equal null is working, but now I can't seem to get the correct date information
Any suggestions?
Thank you
Claire
User | Count |
---|---|
89 | |
41 | |
22 | |
20 | |
16 |
User | Count |
---|---|
138 | |
56 | |
47 | |
36 | |
26 |