I am attempting to create a workflow from a document library using the "Complete a custom action for the selected item" template and modifying it slightly to update a column in the list using the "update file properties" action. Even though the "For a selected item" is not an "item" but rather a "file", I cannot get it to work for me. I keep getting a 403 error when it performs the "Get item" action. But I thought all of this was odd because, it's for "item" and not "file". I tried to create my own flow from scratch, not from the list, chose the "For a selected item" and I cannot choose the document library *red flag*
Oddly enough, I asked someone else to run my custom action for me, it worked for them....ok, so maybe the problem is me? Even though I am the Site Collection admin, I created the list, I created the document, and I created the flow...but I get a 403 access denied?
But then I thought this was interesting...I chose the template "Request manager approval for a selected item" which uses the "For a selected file" option. I didn't change anything for the flow and it worked?
So next I tried to modify this flow for my needs, as I was going to do an approval workflow anyways which needs to be triggered by an end user. After it does the "Get item", I want to update a column on the list to show that the workflow is running. I do this, I try to run it...whoops, 403 error is back. I ask someone else to run it and it works for them.
So two issues:
Thanks for any insight I can get on this!
GetItem workflow created from a list using the "Complete a custom action for the selected item" template:
For your first question, the 403 error is an authentication error, please update the connection which has the error to fix the authentication error. More details about Authentication error, please check the following article:
In addition, please consider take a try to clear the cache of your browser and re-create your flow to check if the issue is solved.
For your second question, I have made a test on my side and don't have the issue that you mentioned. I create my flow with the "Request manager approval for a selected item" template and my flow works successfully as below:
If you want to run the above flow, you should select an item of your SharePoint list or Library and choose this flow from the Flow menu. More details about start a flow from an item of your SharePoint library or list, please check the following article:
If you create the flow from scratch or create the flow with above template in Microsoft Flow directly rather than from the SharePoint list or library, the flow would not be shown up within Flow menu of SharePoint list or library:
Thanks for replying. As I stated in my message, I have already looked into this being a 403 error and have updated the connection multiple times. I have cleared the cache of my browser. I have used 3 different browsers as well: IE, Edge, and Chrome.
I was not clear in my first message that I modified the template, I can run it without modifying it just fine, no 403 errors.
@Pieter_Veenstra The issue for the identifiers was resolved as the connection for the first two actions was using the wrong credentials. But even after correcting that (deleting the workflow and starting over), I ensured with a Microsoft engineer that I am using the correct credentials and I am still getting a 403. He was able to reproduce the issue.
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!