0

So in a previous question I asked how to add a file to a sharepoint list. Since that is not an option, I had make them create new files every time they wanted to make a request. However, creating files on sharepoint causes some issues with Flow.

Right now my flow is set up so that When a file is modified -> Send Approval Email (With copy of file attached) -> Condition: SelectedOption equals Approved ->True: Copy file to approved requests / False: Copy file to denied requests

However, when the new file is created it reads that as a file being edited and sends the approval email with a copy of just the blank template. How do I fix this?

1 Answer 1

0

Add a condition and check to see if modified != created.

8
  • So in basic mode just add the condition (Modified) (Is not equal to) (Created)? Or is there some advanced code I can use? I do want them to just have to open the file once
    – Flotolk
    Jul 6, 2017 at 14:46
  • That still didn't do anything
    – Flotolk
    Jul 6, 2017 at 14:48
  • Correct. For a screenshot, see step 6 in this MS blog post where they were trying to do the opposite. You'll have have not equal to instead of equal to as the condition: powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/…
    – Mike2500
    Jul 6, 2017 at 14:49
  • Files and lists act very differently in flow, I have tried working with this tutorial and it did not help. The items modified and created don't even exist for files
    – Flotolk
    Jul 6, 2017 at 14:50
  • 1
    Instead of using the "when a file is modified" trigger, use the "when an item is modified". Your library won't show up on the dropdown list, but type the name of the library in anyway. You should then have access to all list fields, including created, modified, etc., as well as file fields such as file name, path, etc.
    – Mike2500
    Jul 6, 2017 at 17:19

Your Answer

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

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