Hi community,
I'm currently trying to build a flow to send our employees a Happy Birthday message to their Teams chat on their birthday.
I'm making an API POST call from our HRIS as the source of name and DOB.
Here's the JSON I'm using and getting a little stuck.


I've checked https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Send-A-Happy-Birthday-Email-Message-Without-The-Use-Of-A-List/ba-p/259111
and
https://powerusers.microsoft.com/t5/Building-Flows/Send-a-Happy-Birthday-email-to-employees-on-their-birthday/m-p/154334#M15542
however am facing an issue when trying to parse the JSON.
I originally tried:
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"type",
"name"
]
}
},
"employees": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"dateOfBirth": {
"type": "string"
},
"displayName": {
"type": "string"
},
"workEmail": {
"type": ["string","null"]
}
},
"required": [
"id",
"dateOfBirth",
"displayName",
"workEmail"
but changed to:
{
"title": "Report",
"fields": [
{
"id": "dateOfBirth",
"type": "date",
"name": "Date of Birth"
},
{
"id": "displayName",
"type": "text",
"name": "Display Name"
},
{
"id": "workEmail",
"type": "email",
"name": "Work Email"
}
Any help would be kindly appreciated!
ps. kind of new to this, so go easy 😊