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 Apps / Power Automate does no...
Power Apps
Answered

Power Automate does not send e-mail triggering from a button on a PowerApps form of a Sharepoint List

(0) ShareShare
ReportReport
Posted on by 12

Hello, I made a PowerApps Form to create or midify items in a Sharepoint List. I placed a button on this Form which triggers a Power Automate Flow (Send_an_email_(V2)). This flow should send e-mails and strat Approvals.

 

When I test the flow manually feeding the required inputs instead of PowerAPps form it runs without problem. Great. But when I use button on the Form in the SharePoint list it comes bcak with the following problem:

 

* Send_an_email_(V2) action:

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

* Approval:

"InvalidTemplate. Unable to process template language expressions in action 'Start_and_wait_for_an_approval' inputs at line '0' and column '0': 'The template language expression 'json(decodeBase64(secrets('X-MS-APIM-Tokens')))['$connections']['shared_approvals']['connectionId']' cannot be evaluated because property 'shared_approvals' doesn't exist, available properties are 'shared_sharepointonline, shared_sendmail'. Please see https://aka.ms/logicexpressions for usage details.'."

 

I use my comany account. These actions working well eg when I made approval flow for a document library.

I've already removed and readd the connection, but it not helped on me

 

What do I miss here?

 

Thanks

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @CsaszarZsomle 

    Please post a screen shot of your Flow as well as screen shots of how you call the Flow from Power Apps.

     

  • AAndras Profile Picture
    12 on at

     

    Attached the printscreens of the flow and where I call it from the PowerApps:

     

    And this is the script of the PowerApps step from the flow:

    CsaszarZsomle_2-1647930692425.png

     

     

     

     

    PowerApps.JPG
    PowerAut.JPG
  • Verified answer
    Pstork1 Profile Picture
    69,244 Most Valuable Professional on at

    I assume you are trying to send an email to the maker of the app, which is why you are trying to get the account from the connection.  When you trigger a flow from Power Apps it runs in the context of the user who presses the button, not the maker of the app.  That's why referencing connections won't work.  I would suggest passing the email of the user as a parameter to the flow.  You can get the email address in Power Apps using User().Email.  Then you won't have to try to extract it from the connections.

  • AAndras Profile Picture
    12 on at

    In PowerApps I used this : paQUOTE_Approval.Run(DataCardValue20.Text*1;User().Email)

    than in the Flow I set this e-mail as Sender and it was working. Surprisingly the Approval worked w/o any issue. 

     

    Thanks a lot

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 Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard