web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add a link in a list t...
Power Automate
Unanswered

Add a link in a list to a document created by flow

(0) ShareShare
ReportReport
Posted on by 199

I have a flow which creates a word doc and pdf from items in a sharepoint list using a word template document.

Untitled.png

I would like to use flow to put a link to the newly created pdf file back in the list item.

I cannot use 'when an item is modified or created' as a trigger without creating a flow loop.

I was thinking of using another flow with a recurrance trigger to do this once a day but this means we would lose the modification history because this would be overwritten by flow each day.

Is there a way to add a condition so that flow can differentiate and only run when the modification is made by a user rather than flow?

Thanks Vicki

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Victoria 

     

    So the column that will have the value of the newly created document (the url) will be empty when the item will be created right? In that case, you could use an if condition to check if there was some data in the url column and if no then trigger the flow and if yes, do not trigger the flow (some conditions around specific columns to avoid getting into an infinite loop should help)

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • v-lin-msft Profile Picture
    728 on at

    Hi @Victoria,

     

    Based on your description of your requirements, here are some flow configuration details for your reference:

     

     

    Step1: You could add a Yes/No type column called UpdateSwitch, and set the default value as Yes. Switch it to Yes if a user needs to update every time.Annotation 2019-06-18 145216.png

    Step2: Create a condition under the trigger of the flow you created, and judge the column UpdateSwitch whether it is Yes.

    -If true, continue the next steps.

    -If false, do nothing.Annotation 2019-06-18 145346.png

    Step3: After adding a link in a list to a document, update the item set UpdateSwitch value as No.

     

    Or you can determine whether to create and update time by adding a condition is the same,

    -If the same, is a new item

    -If not the same, it is the previously created files.

    So that you can avoid subsequent updates in the new item of the item to trigger the flow again, but this method is only suitable for the new item if it needs to frequently update the list, do not recommend to do so, this method is presented here for reference.Annotation 2019-06-18 143102.png

    I hope it can help you. If you still have questions, please contact us.

     

    Best Regards,

    Community Support Team _ Lin Tu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard