question

NoahHolliday-4218 avatar image
0 Votes"
NoahHolliday-4218 asked NoahHolliday-4218 commented

Saving Logic App After Applying Email Connector

Hello All,

I am very new to Logic Apps, however a frequent user of Power Automate. To start I just wanted to make a basic logic app that sent me an email that's based off of a payload sent from a ADF pipeline. I am able to construct my workflow in the Logic App and save it perfectly fine. However, when I add in the email connector, the workflow refuses to save, and I don't receive an error as to why. It just appears as though its saving then reverts back to the save option.

Here's the json for the email task I am trying to save.

{

"inputs": {

    "host": {

        "connection": {

            "referenceName": "office365"

        }

    },

    "method": "post",

    "body": {

        "To": "@triggerBody()?['EmailTo']",

        "Subject": "@triggerBody()?['Subject']",

        "Body": "<p>@{triggerBody()?['ErrorMessage']}</p>"

    },

    "path": "/v2/Mail"

}

}

I have ensured that it is correctly identifying my email as the connection and that I have the appropriate contributor status in the resource group to create this task in the workflow.

If anyone could give me any direction it would be greatly appreciated.

azure-data-factoryazure-logic-apps
· 2
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.

Hi @noahholliday-4218,

Thanks for using Microsoft Q&A !!
Can you please provide payload which ADF is sending to logic apps ?

Thanks
Saurabh

0 Votes 0 ·

Hello Saurabh,

I don't currently have a payload set up to send to the webapp as I can't even save the workflow to receive the URL that I would need to route to.

However, my webapp is expecting the request body to look like and what I intend to replicate.

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"DataFactoryName": {
"type": "string"
},
"Subject": {
"type": "string"
},
"EmailTo": {
"type": "string"
},
"ErrorMessage": {
"type": "string"
}
},
"required": [
"DataFactoryName",
"Subject",
"EmailTo",
"ErrorMessage"
]
}


Thank you for time btw!

0 Votes 0 ·

0 Answers