microsoft-teams-apps-requestateam icon indicating copy to clipboard operation
microsoft-teams-apps-requestateam copied to clipboard

Getting Invalid template error – Power Automate Flow - Check team availability

Open SaveeshS-stack opened this issue 1 year ago • 0 comments

Description

We are getting the below error in the action – Send Http Request to SharePoint.

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

Steps to reproduce

  1. Reconnect the SharePoint connectin in the Check Team Avialblilty flow
  2. Reauthenticate using - Azure AD Authentication 3.Connection Succeeded , but on the Check Availablity Request in the app , getting the error

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

Expected results

Connection Should succeeded and should be able to create the Team

Actual Results

Error -

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

Solution component

Power Automate Flows

Operating system (environment)

Windows

Additional Info

No response

SaveeshS-stack avatar Dec 20 '22 20:12 SaveeshS-stack