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?
Solved! Go to Solution.
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.
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.
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.
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.
@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.
Any recommendations?
Has anyone else experienced this error?
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
22 | |
17 | |
17 | |
13 |
User | Count |
---|---|
125 | |
34 | |
31 | |
28 | |
26 |