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

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard