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.