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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error on teams actions...
Power Automate
Answered

Error on teams actions in a flow triggered by powerApps button

(0) ShareShare
ReportReport
Posted on by 40

Hi everyone,

 

I'm doing a ticketing application wich can assign a ticket to a user.
So i'm sending a JSON from PowerApps to flow with the PowerApps trigger. All is going well, i correctly receive all my datas, i can update my item in my sharepoint list... But at the end i want to send a Teams message to the person assigned to this ticket, and post a response to the adaptive card i have posted previously when the ticket has been created. I've already done this things on other applications but never by using this trigger.

The problem is that i have an error of connection i think. Here is the error code i receive :

Unable to process template language expressions in action 'Post_a_reply_to_a_message_(V2)_6' inputs at line '1' and column '2786': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_teams']['connectionId']' cannot be evaluated because property 'shared_teams' doesn't exist, available properties are 'shared_sharepointonline'. Please see https://aka.ms/logicexpressions for usage details.'.


But in my flow connections, i correctly have Teams in my permissions

 

permissionFlow.JPG

 

Does anyone already had this problem and fixed it?

 

Thanks a lot!

Categories:
I have the same question (0)
  • Jay-Encodian Profile Picture
    2,920 on at

    Hey @KevinLG 

    The quickest way to fix this is to use the 'Save As' feature to save the flow as a new Flow... this will fix-up the connections.

    This post provides more detail / guidance: Fix the “InvalidTemplate. Unable to process template language expressions in action” error in Power Automate 

    Then just associated your PowerApp to the new Flow.

    HTH

    Jay

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @KevinLG ,

     

    Please try to remove the flow from the app and re-add it again, this problem will be solved.

     

    Take a try and feel free to let us know if issue still exists.

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard