Skip to main content

Notifications

Power Automate - Using Flows
Answered

Send email using powerapps and planner task data

(0) ShareShare
ReportReport
Posted on by

Hi. I am creating a flow - trigger is PowerApps and it is creating planner tasks based on some conditions. I am planning to add other actions to the flow later on.

At this point, I want to send an email notification that a new task is created. I am using the "Send and email notification" action and it is failing. When I test it outside of my final flow it works fine! But it does not work within the flow. Can't figure out what the problem is. The error message is:

 

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

  • Verified answer
    Re: Send email using powerapps and planner task data

    @v-xida-msft, this is now resolved. I had to delete the connection to the Flow from PowerApps and recreate it! Everything works fine now. Thank you.

  • Re: Send email using powerapps and planner task data

    Thanks for your response. I don't know where "shared_sendmail" is coming from. I don't have that anywhere. Here is the screenshot. I also tried moving the send email action above the first condition after the PowerApps trigger and I still get the same error.

     

     

  • v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Send email using powerapps and planner task data

    Hi @Anonymous,

     

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

    The error message told that there is something wrong with your "Send an email notificaiton" action, the property "shared_sendmail" doesn't exist. 

     

    Please check if the "shared_sendmail" property exists in the output that previous action returned.

     

    Best regards,

    Kris

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics

Restore a deleted flow