Re: How to create a MS Teams with Flow
@CleberM for FYI
Hi Vidanaw,
there are couple of places where this error could be coming from.
1. Authentication in PVA - I assume you have already set it up and the PVA is passing a non-empty String value for the token to your flow. You can verify that the token is non-empty in flow by looking at the flow run.
- this blog post will help you with setting up Authentication with Azure Active Directory in PVA step by step:
https://poszytek.eu/en/microsoft-en/office-365-en/pva-en/pva-series-authentication-in-power-virtual-agent/
2. Passing a token to a Graph API call - there are 2 ways of doing this. You can either include your token in an Authorization header in your HTTP call, or you can use the Raw Authentication method.
- The token is not usually passed in HTTP Request Body.
See this blog for an example on how how to pass a token to a Graph API call with Authorization header or by using Raw Authentication method:
https://laurakokkarinen.com/calling-microsoft-graph-from-microsoft-flow-and-other-daemon-apps-with-delegated-permissions/
The Blog section that has examples of both token-passing methods is called this:
Include the access token in the request when making calls to Microsoft Graph
This blog might be helpful to you in general, since it has other posts on Graph API and Teams in Power Automate (flow).
Your flow scenario is quite deep, and it might be worth cross-posting this questions on Power Automate Community forum (https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/FlowCommunity) to get a deatiled solution faster. Most flow specialists focus on posts at Power Automate forum rather than Power VA community.
Hope this helps!