How to set up a condition in "Create a file in SharePoint for attachments created or modified in a list"?

Agata F 20 Reputation points
2024-12-17T14:10:51.18+00:00

Hi. I created a flow in sharepoint site from templates "Create a file in SharePoint for attachments created or modified in a list" and now all attachments added to item in list are copied to the dedicated sharepoint's library (and that's ok). But, how (and where) i can add condition to this flow, where i set up that attachments will be copy to the dedicated library only when in this list, in the field called "status" the status "completed" will be selected?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,152 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
613 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 19,935 Reputation points Microsoft Vendor
    2024-12-18T05:36:56.1066667+00:00

    Hi @Agata F,

    Thanks for reaching out to us. We are very pleased to support you.

    We just need to add an add a Condition action before the Get attachments action in the original template flow, add a judgment condition, and put the subsequent steps into the True area.

    Here are the exact steps:

    1. Log in to your Power Automate platform.
    2. Click on My flows in the left navigation bar > find the flow you created > click the Edit button. User's image
    3. Click the plus button after When an item is created or modified action to add Condition action.
    4. Click the lightning button to select the status value (or your choice column name +value). Then add the field equals completed judgment. If your column is not a choice column, then just select your column name. User's image
    5. Drag the subsequent actions of the flow to the True area.
    6. This is the complete flow: User's image
    7. Finally, note that it is possible that the modified flow does not overwrite the original flow but recreates a new one. Please return to My flows to check if the original flow exists and delete it if it does.

    If you have any questions, please do not hesitate to contact me.

    Moreover, if the issue can be fixed successfully, please click "Accept Answer" so that we can better archive the case and the other community members who are suffering the same issue can benefit from it.

    Your kind contribution is much appreciated.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.