cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel
Post Prodigy
Post Prodigy

Trigger a specific file in sharepoint

Hi all,

 

What goes wrong that every file is triggered in a folder when it has been modified?

 

a.png

1 ACCEPTED SOLUTION

Accepted Solutions

@tom_riha 

 

Thanks. now it works with 

@equals(triggerOutputs()?['body/{FilenameWithExtension}'], 'Filename .xlsx')

View solution in original post

6 REPLIES 6
tom_riha
Super User II
Super User II

Hello @frixel ,

you've got a space between MasterFile and .xlsx in the second condition (MasterFile .xlsx), couldn't that be the problem?

 

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Hi @tom_riha 

unfortunately that's not what's going on.
In the screenshot a part of the file name is visible, I had removed the second part.
this is what it says in the original.

 

b.png
So unfortunately it is not solved with this.

 

It seems to me to do with the following, but I'm not sure.
When I search the forum I come across many of the examples below where the trigger is "@triggerBody ()? ['Value']".

 

c.png

I don't get that in my flow though, it's always like "@triggerOutputs ()? ['Body / Value']"

 

@frixel , my flows have also triggerOutputs()?['body/value'], but I guess it's equivalent, the triggerBody() is already inside the 'body' and has access to value directly, triggerOuputs() need the 'body' in the index to access the value.

If you're not sure about the trigger conditions format, you can use the 'Filter array' action to create the condition:

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Hi @tom_riha 

 

I've done what you suggest but I don't know where you want to go with it.

 

d.png

 

By the way i have only this approval to choise.

 

e.png

It was just an example, build your trigger conditions one by one in the 'Filter array', switch to advanced mode and copy/paste it as a trigger condition.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

@tom_riha 

 

Thanks. now it works with 

@equals(triggerOutputs()?['body/{FilenameWithExtension}'], 'Filename .xlsx')

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (44,815)