web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Type is Required ERROR - Post a message to Teams for a selected row

(0) ShareShare
ReportReport
Posted on by

I have completed a Flow for using the "Post a message to Teams for a selected row" template. Unfortunately after completing all fields, I get an error for the Teams Post Message section that "Type is required".  There is no field for type. Any recommendations?
Flow teams message TYPE is required.PNG

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    Can you please peek the code and see if there's anything related to Type? Sometime it happens if you have added a filed Type which is a required and deleted the field because it's not needed. If you see Type in the code, you can try creating a new flow and execute it. If it doesn't work, providing the execution output from previous runs helps to figure out the problem.

  • Community Power Platform Member Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    Thank you @Anonymous for your response. I peeked the code and listed it below. There is only one "type" reference and I highlighted in red. 

     

    {
     "inputs": {
     "host": {
     "connection": {
     "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_teams']['connectionId']"
     },
     "api": {
     "runtimeUrl": "https://msmanaged-na.azure-apim.net/apim/teams"
     }
     },
     "method": "post",
     "body": {
     "rootMessage": {
     "body": {}
     }
     },
     "path": "/beta/groups/@{encodeURIComponent('0380892c-a707-4c31-a35f-b77261156c77')}/channels/@{encodeURIComponent('19:71ce6d0ca6974af1bd99dcd62c357b85@thread.skype')}/chatThreads",
     "authentication": {
     "type": "Raw",
     "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
     }
     },
     "metadata": {
     "flowSystemMetadata": {
     "swaggerOperationId": "PostMessageToChannel"
     }
     }
    }

    When I created the Flow, I opened the user input option, cancelled it, etc just to explore all the functionality. Perhaps this caused the error?  i have never run the Flow because of the error.
    flow choose type of user input.PNG

  • Community Power Platform Member Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    @Anonymous  I tried creating another Flow using the same template but not clicking the User input options. Flow checker showed no errors until I clicked Save, then I got the same 'Type is required' error.
    Flow teams message TYPE is required try 2.PNG
    Any recommendations?

  • Community Power Platform Member Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    Has anyone else experienced this error?

  • Verified answer
    v-zhos-msft Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    Hi @Anonymous ,

    I have made a test on my side, it has the same issue with you.

    I think it's because of the update of MS Teams connector.

    The template still use the old action.

    I suggest you delete the action 'Post message', and add the 'Post a message' by yourself.

    Capture13.PNG

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at
    Re: Type is Required ERROR - Post a message to Teams for a selected row

    @v-yamao-msft - That was the solution! Thanks so much for your response.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard