create planner plans and add them as teams tabs using Graph API is raising this error "Invalid bind property name teamsApp in request."

35 Views Asked by At

I am trying to join the approaches mentioned in these 2 links:-

https://michelcarlo.com/2023/09/01/using-the-http-with-azure-ad-connector-in-power-automate-to-create-planner-plans-and-add-them-as-teams-tabs/

https://powerusers.microsoft.com/t5/Building-Flows/Flow-creates-team-channel-but-channel-is-hidden/td-p/1677813

where i want to create a standard channel inside existing Microsoft Teams + create a new Planner + show the new Planner inside the new channel tab.. here what i did so far:-

  1. Get the Teams + create a standard channel:-

enter image description here

  1. Parse the JSON and create a new Planner plan

enter image description here

  1. Parse the json + get the Planner Id

enter image description here

  1. Finally , show the Planner Plan inside a channel tab.

enter image description here

here is the body of the http request:-

{
    "displayName": "@{triggerOutputs()?['body/Title']}",
    "[email protected]": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.planner",
    "configuration": {
        "entityId": "@{body('Parse_JSON_2')?['id']}",
        "contentUrl": "https://tasks.teams.microsoft.com/teamsui/{tid}/Home/PlannerFrame?page=7&auth_pvr=OrgId&auth_upn={userPrincipalName}&groupId={groupId}&planId=@{variables('PlannerID')}&channelId={channelId}&entityId={entityId}&tid={tid}&userObjectId={userObjectId}&subEntityId={subEntityId}&sessionId={sessionId}&theme={theme}&mkt={locale}&ringId={ringId}&PlannerRouteHint={tid}",
        "removeUrl": "https://tasks.teams.microsoft.com/teamsui/{tid}/Home/PlannerFrame?page=13&auth_pvr=OrgId&auth_upn={userPrincipalName}&groupId={groupId}&planId=@{variables('PlannerID')}&channelId={channelId}&entityId={entityId}&tid={tid}&userObjectId={userObjectId}&subEntityId={subEntityId}&sessionId={sessionId}&theme={theme}&mkt={locale}&ringId={ringId}&PlannerRouteHint={tid}",
        "websiteUrl": "https://tasks.office.com/{tid}/Home/PlanViews/@{variables('PlannerID')}?Type=PlanLink&Channel=TeamsTab"
    }
}

but on the last request i am getting this error:-

Invalid bind property name teamsApp in request.

any advice on this please?

Thanks

0

There are 0 best solutions below