Hi All,
I'm new to power automate, so sorry if this is a pretty basic question.. I'm following this article here: https_www.blogabout.cloud/?url=https%3A%2F%2Fwww.blogabout.cloud%2F2020%2F10%2F1863%2F which creates a simple flow to post Office 365 service communications to Teams. All is well until I get to the step where we parse the json and I get invalid syntax when using the schema provided by the OP.
The issue seems to be with the "required": [" line, but I'm not smart enough to figure out how to fix it. Any help would be really appreciated. Thanks!
{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"FeatureStatus": {
"type": "array",
"items": {
"type": "object",
"properties": {
"FeatureDisplayName": {
"type": "string"
},
"FeatureName": {
"type": "string"
},
"FeatureServiceStatus": {
"type": "string"
},
"FeatureServiceStatusDisplayName": {
"type": "string"
}
},
"required": [
"FeatureDisplayName",
"FeatureName",
"FeatureServiceStatus",
"FeatureServiceStatusDisplayName"
]
}
},
"Id": {
"type": "string"
},
"IncidentIds": {
"type": "array",
"items": {
"type": "string"
}
},
"Status": {
"type": "string"
},
"StatusDisplayName": {
"type": "string"
},
"StatusTime": {
"type": "string"
},
"Workload": {
"type": "string"
},
"WorkloadDisplayName": {
"type": "string"
}
},
"required": [
"FeatureStatus",
"Id",
"IncidentIds",
"Status",
"StatusDisplayName",
"StatusTime",
"Workload",
"WorkloadDisplayName"
]
}
}
}
}
Solved! Go to Solution.
The [ is just the encoded form of a [ (square bracket). That section should be an array of required fields and should look like this.
"required": [
"FeatureStatus",
"Id",
"IncidentIds",
"Status",
"StatusDisplayName",
"StatusTime",
"Workload",
"WorkloadDisplayName"
]
The [ is just the encoded form of a [ (square bracket). That section should be an array of required fields and should look like this.
"required": [
"FeatureStatus",
"Id",
"IncidentIds",
"Status",
"StatusDisplayName",
"StatusTime",
"Workload",
"WorkloadDisplayName"
]
There you go, can't believe I didn't try that. Thanks for the help! Now I need to figure out why I'm getting this error:
The error was just caused by a typo, it's working now, thanks for your help!
User | Count |
---|---|
88 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
132 | |
47 | |
42 | |
36 | |
28 |