question

SuganyaSivashanmugam-8669 avatar image
0 Votes"
SuganyaSivashanmugam-8669 asked MayankBargali-MSFT answered

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?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@SuganyaSivashanmugam-8669 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.