cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SilasCyro
Frequent Visitor

ERROR IN FLOW WHEN I CREATE AN APPROVAL ACTION

Hi guys,

I am currently working on a laptop gate pass for my place of work. I am using Power Apps to display the user and laptop details for the user to submit their request for a laptop gate pass.

 

I have a Power Apps trigger in my Flow, then I create the item in SharePoint list and add an Approval step for the newly created request/item, after the request has been approved I want to generate a PDF as the laptop gate pass and attach this to an email notification back to the user.


However when I add an Approval step I get the error below, please help me on how to fix this.

 

 

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

 

Regards,

Silas

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SilasCryo,

I think the last bullet on the above section should work.

When you import the Flow to PowerApps there is a current bug (that I don’t think has been fixed yet) that occurs when you add a new connection to your Flow.

All you have to do to resolve it is to Save the Flow as a new Flow, with a new name, then remove the call to it from PowerApps and the association to it from the PowerApps form and add a call to the news flow and it should start working.... until you add another new connection to the Flow and then you’ll have to re-add it again.

-Mark

View solution in original post

5 REPLIES 5
ScottShearer
Super User
Super User

@SilasCyro:

Can you post a screen shot of your Flow?  That will make it much easier to assist.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Hi @ScottShearer,

 

Below is the screen shot.

 

Capture.PNG

 

Regards,

Silas

Hi @SilasCyro,

 

You could try to solve your problem using the following methods:

  • If you are using and configuring this Flow in PowerApps portal, you could try to open the Flow in MS Flow portal and re-run Flow to check if the issue still exists.
  • Close this page,  refresh the page, then reopen MS Flow and run Flow.
  • Or export the entire Flow, then re-import as a new Flow, configure all connections, then run Flow and check if the problem still exists.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @SilasCryo,

I think the last bullet on the above section should work.

When you import the Flow to PowerApps there is a current bug (that I don’t think has been fixed yet) that occurs when you add a new connection to your Flow.

All you have to do to resolve it is to Save the Flow as a new Flow, with a new name, then remove the call to it from PowerApps and the association to it from the PowerApps form and add a call to the news flow and it should start working.... until you add another new connection to the Flow and then you’ll have to re-add it again.

-Mark

View solution in original post

Hi @MarkStokes@v-bacao-msft@ScottShearer

 

I followed the steps and also re-configure the whole flow again and it worked well. Thanks so much for the support and ideas shared.

 

Regards,

Silas

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,082)