Hello Guys I hope you are doing great! I have a PowerApps that enables the user to upload a file. In the background, I have a Power automate that grabs this data and inserts it into a sharepoint list.
The file I upload is an excel file. I'm currently Using the "List rows present in table" action. But when I see the error message it says:
The request is forbidden by Graph API. Error code is 'AccessDenied'. Error message is 'Could not obtain a WAC access token.'.
I have already copied the flow and export and import it.
Do you know why is this happening?
I am not sure but please try accessing file using unique identifier as shown below:
Excel container does not work with filename.
Use an output from the OneDrive for Business connector's triggers/actions (file's Id or File identifier property depending on which one is present for the particular OneDrive for Business's action or trigger).
Use an output from the SharePoint connector's triggers/actions (file's Id or Identifier property depending on which one is present for the particular Sharepoint's action or trigger).
Hello Jini thanks for the fast response! I'm actually using the identifier I get from "Get File properties" action.
Below let me show you the steps of my flow:
Getting data from a PowerApps.
With this step Im getting the file identifier
And then I will be using the action "List rows present in a table"
The whole process goes correctly, until this step.
I'm owner of the of this SharePoint group and the files are being saved in the same Sharepoint group document library.
In this step of List of rows, Im getting this issue:
Graph API prohibits the request. The error code is "AccessDenied". The error message is "Could not obtain a WAC access token.".
The following was the old flow, which I replicated (above pictures).
Below the old flow:
In the Identifier information I get from "Get file properties" I get the following:
But in the replicated flow (new), the Identifier information I get from "Get file properties" is different:
Both flows are different owners, so that's why the old flow I'm not currently using it because it is giving me an issue in the "List Rows present in table" step:
Unable to process template language expressions in action 'List_rows_present_in_a_table' inputs at line '1' and column '2409': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_excelonlinebusiness']['connectionId']' cannot be evaluated because property 'shared_excelonlinebusiness' doesn't exist, available properties are 'shared_sharepointonline_1, shared_excelonlinebusiness_1, shared_sharepointonline_2'. Please see https://aka.ms/logicexpressions for usage details.'.
That's why Im recreating the flow from scratch, but I'm having the issue of Access denegation.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
Many congratulations to the Season 1 2021 Flownaut Crew!
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.