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 while sending em...
Power Automate
Unanswered

Error while sending email with another account from PowerAPps to MSFlow

(0) ShareShare
ReportReport
Posted on by 129

I have created one PowerApp form. When user clicks on a button, calling a flow and sending parameter to the flow. In flow I am getting item from SharePoint and sending an test email. 

To send email I am using different (common) account. I have added connection with another account and selected while sending email. But flow is erroring out  with below message: 

 

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

 

I have tried different solutions but nothing worked out for me.

Categories:
I have the same question (0)
  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @MihirY ,

    Could you please share a screenshot of your flow's configuration?

    As the error message shown, there are some issue about the expressions in the 'Get item' action.

    There connection in the expression(['shared_sharepointonline']) is different from the connection you have selected with the 'Get item' action(shared_sharepointonline_1).

    I suggest you change the caonnection of the 'Get item' action or cahnge the expression.

    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.

     

  • MihirY Profile Picture
    129 on at

    I have deleted the connections and readded them. But still the same issue. If I submit PowerApp with one particular user account (with my name) flow is working fine. If I submit form with any other user account, flow is giving me the error. 

    Yes error is related to connection, but where to check those connections. I have tried with export and import still same issue. If I change the connection to my name then flow is working with any other user. What is the problem with that common account?

  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @MihirY ,

    The account you have submitted in PawerApp should correspond to the connection account in the flow.

    Here, I made a test for different connections, you can check with the code view:

    Capture1.PNGCapture2.PNGCapture3.PNGCapture4.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

  • MihirY Profile Picture
    129 on at

    Thanks for your response. But my flow is showing like wrong connection or invalid connection. Is it possible to change the code here? I am trying to edit the code but it is not allowing me edit. 

  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @MihirY ,

    I am fraid you can't edit the code in flow.

    I suggest you change the connection for a try.

    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.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard