skip to Main Content

I have following email body (paragraph) in a string in logic app. I want add a new line after "Hello Customer," and also the text "Best Regards, in a separate line and then "Support Team" should go to next line.

Hello Customer, Thanks for reaching out to us. We appreciate your
interest in our business. This is to confirm that we’ve successfully
received your request.If you need immediate assistance or have any
further questions, feel free to call us at phone.Best Regards, Support
Team

I’m expecting the email body in the following format. How can I achieve this in logic app.

Hello Customer,

Thanks for reaching out to us. We appreciate your interest in our
business. This is to confirm that we’ve successfully received your
request you need immediate assistance or have any further questions,
feel free to call us at phone.

Best Regards, Support Team

2

Answers


  1. You need to do it using HTML, something like this …

    HTML

    … the exact example above is untested but it should give you an idea.

    Login or Signup to reply.
  2. How to split email body text in logic app

    I have reproduced in my environment and below are expected results:

    You can simply use <pre> tag as below:

    Design:

    enter image description here

    Output:

    https://i.imgur.com/49ebt1J.png

    enter image description here

    Codeview:

    {
        "definition": {
            "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
            "actions": {
                "Compose": {
                    "inputs": "<pre>nHello Customer,nnThanks for reaching out to us. We appreciate your interest in our business. This is to confirm that we’ve successfully received your request you need immediate assistance or have any further questions, feel free to call us at phone.nnBest Regards, Support Teamn</pre>",
                    "runAfter": {},
                    "type": "Compose"
                },
                "Send_an_email_(V2)": {
                    "inputs": {
                        "body": {
                            "Body": "<p>@{outputs('Compose')}</p>",
                            "Importance": "Normal",
                            "Subject": "IMPORTANT",
                            "To": "[email protected]"
                        },
                        "host": {
                            "connection": {
                                "name": "@parameters('$connections')['office365']['connectionId']"
                            }
                        },
                        "method": "post",
                        "path": "/v2/Mail"
                    },
                    "runAfter": {
                        "Compose": [
                            "Succeeded"
                        ]
                    },
                    "type": "ApiConnection"
                }
            },
            "contentVersion": "1.0.0.0",
            "outputs": {},
            "parameters": {
                "$connections": {
                    "defaultValue": {},
                    "type": "Object"
                }
            },
            "triggers": {
                "manual": {
                    "inputs": {
                        "schema": {}
                    },
                    "kind": "Http",
                    "type": "Request"
                }
            }
        },
        "parameters": {
            "$connections": {
                "value": {
                    "office365": {
                        "connectionId": "/subscriptions/b83c1ed3/resourceGroups/rbojja/providers/Microsoft.Web/connections/office365",
                        "connectionName": "office365",
                        "id": "/subscriptions/b83c1ed3/providers/Microsoft.Web/locations/eastus/managedApis/office365"
                    }
                }
            }
        }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search