web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / InvalidTemplate when u...
Power Automate
Answered

InvalidTemplate when using API- key

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I´ve created an custom connector in order to get the data out of barcodes. The service provided me with an API- key, though it also works without one, it just wont show the whole information of that barcode.

So the connector works perfectly with the data that I have testet it with but as soon as I add the API- key to the header, I get this error when executing the flow:

 

InvalidTemplate. Unable to process template language expressions in action 'Get_Barcodes' inputs at line '1' and column '2616': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_inlite.20test.5fde9561408efef971.5f92ee9c5ac6561bb3_1']['connectionId']' cannot be evaluated because property 'shared_inlite.20test.5fde9561408efef971.5f92ee9c5ac6561bb3_1' doesn't exist, available properties are 'shared_inlite.20test.5fde9561408efef971.5f92ee9c5ac6561bb3'. Please see https://aka.ms/logicexpressions for usage details.'.
 
I have tried the same thing using Postman and it just works there. The parameters are
  • Type: API- Key
  • Key: Authorization,
  • Value: [API- Key],
  • Add to: Header.
In the flow- connector, I´ve configured:
  • Type: API- Key
  • Label: Authorization
  • Name: Authorization
  • Location: Header

And then I just provide the key in the connection.

Is there anything I´m doing wrong or is there a problem with flow?

 
Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    For some reason it just worked when I deleted the old connector and then created it again from scratch.

     

    Unbenannt2.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard