Unable to process template language expressions in action

Anonymous
2023-09-05T11:26:01.62+00:00

I have a little problem. Maybe there's someone from the Microsoft that could help me with this?

Trying to understand why this does not work. I am pulling out the information from the Microsoft Forms, then parsing it and handing over to the HTTP request.

Error that I am getting:

Unable to process template language expressions in action 'Get_the_AAD_information_about_the_user' inputs at line '0' and column '0': 'The template language expression 'parameters('$connections')['webcontents']['connectionId']' cannot be evaluated because property 'webcontents' doesn't exist, available properties are 'microsoftforms, office365'. Please see https://aka.ms/logicexpressions for usage details.'.

This is my flow. I am getting the responses from the Microsoft Forms.

enter image description here

If the email accept is true, then I am getting out the user information from the AAD with HTTP request to Microsoft Graph.

enter image description here

Also, for the approval part, I am getting approve or reject for the Condition here:

enter image description here

This is the Parse JSON it's generating.

enter image description here

And this is where I am using the email from that Parse JSON added to the graph request.

enter image description here

So far I have tested and seems that this is the issue. Could be that the Accept or Reject values cannot be written as string in the field. How could I define it as an expression instead?

enter image description here

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-09-06T12:58:28.9466667+00:00

    @Anonymous Thanks for reaching out. As per the error looks like your code view doesn't have webcontents connection and you only have defined microsoftforms and office365 connection in your code view. Please recreate the webcontents connection that you have specified or in case if you are using it then make sure webcontents and connectionId exists.

    parameters('$connections')['webcontents']['connectionId']'

    For example, in my below logic app code view you can excelonlinebusiness, sharepint and sql_2 connection are define and in your case webcontents connection is missing for which you are getting the error.

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.