Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Creating a Team from PowerApps Runtime Error

(0) ShareShare
ReportReport
Posted on by 58

Hello,

 

I was trying to use the Microsoft Teams Connector to create a Team from inside a canvas app. The team seems to get created, but I'm getting a run-time error (am trying to retrieve the ID of the created team). This is my code OnSelect:

 

Set(createdTeam,MicrosoftTeams.CreateATeam("Test Team", "This is a test of creating a Team from PowerApps"))

 

Runtime error is:

MicrosoftTeams.CreateATeam failed: The data returned in the response is invalid. Response data should be a valid JSON object.

 

This is probably something simple I'm missing, but I can't seem to find any answers. Appreciate any help. Thanks!

Categories:
  • knoxknnocks Profile Picture
    knoxknnocks 58 on at
    Re: Creating a Team from PowerApps Runtime Error

    Hi @MarvinBangert sorry I missed your reply. Thanks for that!

     

    For now, I'm just living with the issue and retrieve the group id using a filter on all teams after based on the unique team names that we are creating. I'll open a support ticket once it becomes unbearable!

  • Verified answer
    MarvinBangert Profile Picture
    MarvinBangert 1,917 on at
    Re: Creating a Team from PowerApps Runtime Error

    Hey @knoxknnocks,

    I get the same error when trying to do this, the team is created but you still see an error in the formular. Even when adding the return "newTeamId", the error still occures. From the docs the return should be the "New Team ID": Microsoft Teams - Connectors | Microsoft Docs

     

    I only remember this error message from a missing declaration in the header for "Accept application/json" (in a custom connector), but this is inside the connector itself, so you could not change it. If this is not declared, the data returns as XML and the app cannot work with this return.

     

    If nobody else has an idea, I would open a support ticket, just in case this is a problem within the connector itself.

     

    @WarrenBelz 

    @RandyHayes 

    Could you have a look on this?

     

    Best regards
    Marvin

    If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard