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.'.
@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.
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.
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