SOLVED

Use 'For a selected item' on a file

%3CLINGO-SUB%20id%3D%22lingo-sub-100281%22%20slang%3D%22en-US%22%3EUse%20'For%20a%20selected%20item'%20on%20a%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100281%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20posted%20this%20same%20questions%20on%20the%20PowerUsers%20Community%20first%2C%20but%20noticed%20it%20seems%20there%20is%20more%20activity%20here.%20When%20one%20of%20the%20posts%20provides%20me%20with%20an%20answer%2C%20I%20will%20share%20it%20in%20the%20other%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20create%20a%20Flow%20for%20a%20document%20library%20which%20can%20be%20started%20manually.%20As%20per%20my%20knowledge%20I%20should%20use%20the%26nbsp%3B%3CEM%3EFor%20a%20selected%20item%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etrigger%2C%20on%20which%20the%20description%20says%20it%20can%20be%20used%20on%20Lists%20and%20Libraries.%20But%20when%20I%20select%20this%20trigger%20and%20provide%20the%20site%20address%2C%20no%20libraries%20are%20shown.%26nbsp%3BLists%20are%20shown%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20just%20look%20at%20the%20name%20of%20the%20trigger%2C%20I%20would%20expect%20it%20only%20works%20for%20lists.%20It%20says%26nbsp%3B%3CEM%3EFor%20a%20selected%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eitem%3C%2FSTRONG%3E%3C%2FEM%3E%2C%20so%20it%20does%20make%20sense.%20But%20the%20description%20of%20this%20trigger%20tells%20me%20otherwise%20(and%20the%20%26nbsp%3Band%20I%20don't%20see%20a%20trigger%20named%26nbsp%3B%3CEM%3EFor%20a%20selected%26nbsp%3B%3CSTRONG%3Efile%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20some%20research%20on%20the%20internet%2C%20but%20couldn't%20find%20any%20helpfull%20information%20on%20this%20specific%20topic.%26nbsp%3BHopefully%26nbsp%3Bone%20of%20you%20guys%20can%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20in%20advance%20for%20any%20effort%20and%20time%20spend%20on%20helping%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20best%2C%3CBR%20%2F%3EQuincy%20Thomas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-100281%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-102052%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20'For%20a%20selected%20item'%20on%20a%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-102052%22%20slang%3D%22en-US%22%3EHi%20John%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20love%20your%20out-of-the-box%20thinking%20and%20was%20able%20to%20get%20the%20flow%20to%20work%20with%20your%20solution!%20Thanks%20for%20the%20help%20and%20I%20will%20definitely%20post%20this%20to%20the%20Flow%20Community%20as%20well!%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20the%20best%2C%3CBR%20%2F%3EQuincy%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100344%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20'For%20a%20selected%20item'%20on%20a%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100344%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20interested%20in%20your%20issue%2C%20so%20found%20a%20solution%20that%20works%20for%20me.%20I%20did%20not%20use%20the%20%22For%20a%20selected%20item%22%20but%20started%20with%20going%20to%20the%20library%2C%20selected%20one%20file%20and%20choose%20%22Create%20a%20flow%22.%3C%2FP%3E%3CP%3EThis%20loads%20several%20templates%2C%20I%20choose%20%22Post%20a%20message%20to%20Teams%20for%20a%20selected%20file%22%20(I%20could%20have%20chosen%20differently).%20Use%20the%20Continue%20button%20-%20you%20will%20now%20be%20able%20to%20modify%20the%20flow.%3C%2FP%3E%3CP%3EThe%20first%20action%20is%20%22Request%22%20-%20ignore%20that%20one%2C%20it%20is%20as%20it%20needs%20to%20be.%3C%2FP%3E%3CP%3EThe%20second%20action%20is%20%22Get%20item%22%20-%20ignore%20that%20one%2C%20also%20good%20as%20is.%3C%2FP%3E%3CP%3EThe%20third%20action%20is%20%22Post%20message%202%22%20-%20delete%20it!%3C%2FP%3E%3CP%3ENow%20you%20can%20add%20your%20third%20action%20as%20needed%20and%20do%20whatever%20you%20want%20with%20the%20item%2Ffile.%3C%2FP%3E%3CP%3EWhen%20you%20save%20the%20flow%2C%20and%20returns%20to%20the%20library%2C%20you%20will%20observe%20that%20when%20you%20select%20a%20file%20and%20looks%20under%20flow%2C%20you%20will%20see%20your%20flow's%20name%20there.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3EHope%20this%20helps%20you%20on%20the%20way!%3C%2FP%3E%3CP%3EKind%20regards%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

I've posted this same questions on the PowerUsers Community first, but noticed it seems there is more activity here. When one of the posts provides me with an answer, I will share it in the other post.

 

I'm trying to create a Flow for a document library which can be started manually. As per my knowledge I should use the For a selected item trigger, on which the description says it can be used on Lists and Libraries. But when I select this trigger and provide the site address, no libraries are shown. Lists are shown though.

 

If I just look at the name of the trigger, I would expect it only works for lists. It says For a selected item, so it does make sense. But the description of this trigger tells me otherwise (and the  and I don't see a trigger named For a selected file

 

I did some research on the internet, but couldn't find any helpfull information on this specific topic. Hopefully one of you guys can help me.

 

Many thanks in advance for any effort and time spend on helping me.

 

All the best,
Quincy Thomas

2 Replies
Highlighted
Best Response confirmed by Quincy Thomas (Occasional Contributor)
Solution

I was interested in your issue, so found a solution that works for me. I did not use the "For a selected item" but started with going to the library, selected one file and choose "Create a flow".

This loads several templates, I choose "Post a message to Teams for a selected file" (I could have chosen differently). Use the Continue button - you will now be able to modify the flow.

The first action is "Request" - ignore that one, it is as it needs to be.

The second action is "Get item" - ignore that one, also good as is.

The third action is "Post message 2" - delete it!

Now you can add your third action as needed and do whatever you want with the item/file.

When you save the flow, and returns to the library, you will observe that when you select a file and looks under flow, you will see your flow's name there. :)

Hope this helps you on the way!

Kind regards

John

Highlighted
Hi John,

I love your out-of-the-box thinking and was able to get the flow to work with your solution! Thanks for the help and I will definitely post this to the Flow Community as well!

All the best,
Quincy