I'm doing a POST from a script into a flow. AFAIK it needs to be JSON, and I do have the "When a HTTP request is received" in place and accepting input.
The schema is what's shown below. It's basically just those 5 things, but there tend to be several groups of them at a time, which I intend to email in the last step (Send an email v2). I've tried emailing it as is, and it's an unreadable blob of JSON, of course.
It doesn't have to be an HTML table necessarily. Even if it was just the five things repeated down the body of the email would work. Like:
Received: 5/6/2024 12:00:00 PM
Sender: joe@blah.com
Recipient: Mary@blah.com
Subject: The subject of the email
Type: Phish
etc
Perhaps a "Compose" or two between the above two actions would do it? This is the part that I'm very unclear about and don't understand.
{
"type": "array",
"items": {
"type": "object",
"properties": {
"ReceivedTime": {
"type": "string"
},
"SenderAddress": {
"type": "string"
},
"RecipientAddress": {
"type": "array",
"items": {
"type": "string"
}
},
"Subject": {
"type": "string"
},
"QuarantineTypes": {
"type": "string"
}
},
"required": [
"ReceivedTime",
"SenderAddress",
"RecipientAddress",
"Subject",
"QuarantineTypes"
]
}
}