cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Splush
Level: Powered On

InvalidTemplate when using API- key

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?

 
1 ACCEPTED SOLUTION

Accepted Solutions
Splush
Level: Powered On

Re: InvalidTemplate when using API- key

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

 

Unbenannt2.png

View solution in original post

1 REPLY 1
Splush
Level: Powered On

Re: InvalidTemplate when using API- key

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

 

Unbenannt2.png

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,083)