Hi!
I am new to copilot studio and trying to test some different ideas. I was trying to call the msgraph API from copilot studio with a flow. The flow is working fine and returns 200. have no inputs into my flow, and it just returns the my name (as a simple test).
However, when I try to integrate the flow into copilot studio (see under), I get the error message BadRequest/FlowActionBadRequest with error code NotSpecified.
I have also tested using the http action to call the msgraph API directly and I get the same error code, FlowActionBadRequest (even though the flow itself works fine). It does not seem like the flow runs at all when I look at the recent flow history. Does anyone have any suggestions on what might be wrong? Or any idea how I can get some more debug information from copilot?
(Other tests I did:
I tested with Power Virtual Agents in copilot studio with the exact same setup as above. This is my flow and it works, and I also get the response from msgraph in the copilot studio chat.
I have also tested similar setups with open APIs such as OpenStreetMap, and it works just fine (i.e. I get back the API response in the copilot chat with the output from the API). Under is a screenshot from the flow and I can use the actions "Run a flow from Copilot" and "Respond to copilot" and it works fine here.
)
Any ideas or suggestions on how to solve the FlowActionBadRequest would be highly appreciated! Let me know if you have any questions.
I also encountered this issue. I managed to get it working by changing the trigger from the 'Run a flow from Copilot' to the 'When Power Virtual Agents calls a flow trigger'. It may just be a bug with the copilot trigger.
This solved my problem @matow, thank you so much 🤗
@victoriag As an additional troubleshooting step, please check the run-only settings of the flow (from make.powerautomate.com, locate the flow's detail page -> "Run only users" tile in bottom right -> Edit) and make sure that the connections in the flow are set to Use this connection for each connector, rather than Provided by run-only user, as connections from end users aren't yet supported.
Thank you 🙂 I will do that
I'm not sure what else to suggest. As I mentioned I tried the exact same code you are using and it works for me. I suppose it could be something about the way your environment is configured, but I don't know what setting would cause what you are seeing. You may need to open a support ticket with Microsoft to resolve this one.
Thank you for your answer! I tested your suggestions, and unfortunately it still gives me an error message ..
I also tested to call the graph without a flow, using the built in plugin action "Office 365 Users - Get my profile (V2)", and now I get "SystemError".
Do you think the error messages could have anything to do with organizational settings/permissions? The copilot-app is configured with authentication for Teams and Power Apps, so I assume it has nothing to do with that, but I am not completely sure.
Thank you!
But after doing those two things I was able to get the simple flow you were using to work with both the Copilot and PVA triggers and response actions.