I want to have a single flow that get's called from lots of libraries rather than recreating the same flow on each library using the For the Selected File trigger.
I have a simple flow that is triggered manually.
There is only one action which is to get file properties.
When the flow is called from a library (column formatted button) it has the itemID, siteURL and itemURL. This is enough to use the Get File Properties action. However this action fails with an error message saying:
The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline_1']['connectionId']' cannot be evaluated because property 'X-MS-APIM-Tokens' doesn't exist
When the flow is triggered from within the Flow service the get file properties action works (if i hard code what file to get).
The header's do contain the X-MS-APIM-Tokens attribute.
What is the point of manual triggered flows if they are given context information but no authentication info?!
Solved! Go to Solution.
Hi @PeterVincent ,
Please choose the Library Name from the drop-down list.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PeterVincent ,
Could you please share a screenshot of the configuration of the flow?
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @PeterVincent ,
Please choose the Library Name from the drop-down list.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The drop down list does not have Site Pages.
I have a second flow that is currently moving pages into sub-folders in the Site Pages library of another site collection.
I am assuming that if manually entering the name of the library works for the Move File action then it would also work for the Get File Properties action.
I am testing this on a communications site collection, for background information.
Hi @PeterVincent ,
Does your issue still exists?
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes it does. There have been no other suggestions so nothing has changed.
I have tried with other libraries in other site collections but the same error happens.
Does Microsoft know that this is a reproducible bug in Flow?
Any help with solving this would be greatly appreciated.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |