Logic App BAD Request Error

bk 461 Reputation points
2021-11-12T15:29:00.957+00:00

Hi All,
I have a created a logic app and then added the "HTTP Request Received" and Added the "Send Email V2" task. My Request BODY JSON Schema looks like below
{
"properties": {
"DataFactoryName": {
"type": "string"
},
"ErrorMessage": {
"type": "Array"
},
"Pipeline": {
"type": "string"
},
"Runid": {
"type": "string"
},
"Subject": {
"type": "string"
}
},
"type": "object"
}
In the Send an email in the subject section if i pass "Subject" as dynamic content and Trigger it I am getting the below message
"body": {
"status": 400,
"message": "Parameter 'Subject' cannot be null or empty.\r\nclientRequestId: e1a34d10-467a-4878-98c3-eb4f090839aa",
"error": {
"message": "Parameter 'Subject' cannot be null or empty."
},

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

1 answer

Sort by: Most helpful
  1. Nasreen Akter 10,736 Reputation points
    2021-11-12T16:58:19.02+00:00

    Hi @bk ,

    When you call the LogicApp, would you please provide subject in the payload e.g.,

    {  
    "Subject": "This is a TEST email"  
    }  
    

    and try again. Thanks!