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