I need to convert a json message from my logic app into HTML email body using liquid template. Is there a way to do it?

Suganya Sivashanmugam 1 Reputation point
2021-09-22T02:59:19.273+00:00

I am using Logic App standard and getting my json content by pining a an endpoint using HTTP action and wanted to change that response to an HTML email body using liquid transformations.

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2021-09-22T03:38:07.83+00:00

    @Suganya Sivashanmugam When you want to perform basic JSON transformations in your logic apps, you can use native data operations such as Compose or Parse JSON. For advanced and complex transformations that have elements such as iterations, control flows, and variables you should use the liquid template. For more details please refer to this. If you only need to parse the json then there is no need to use the liquid templete as the output will not create the user-friendly tokens that you can use in your workflow. After the liquid template you still need to use Parse JSON if you want to Create user-friendly tokens of the output and use in your worflow.

    You can simply parse your json content using Parse JSON action and it will Create user-friendly tokens from JavaScript Object Notation (JSON) object properties so you can easily use those properties in your workflow. In this section it uses the token and pass it to the body of your send an email action.

    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.