File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
docs/admin/monitoring/notifications Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,11 @@ To build the server to receive webhooks and interact with Slack:
89
89
return res .status (400 ).send (" Error: request body is missing" );
90
90
}
91
91
92
- const { title , body } = req .body ;
93
- if (! title || ! body ) {
94
- return res
95
- .status (400 )
96
- .send (' Error: missing fields: "title ", or "body "' );
92
+ const { title_markdown , body_markdown } = req .body ;
93
+ if (! title_markdown || ! body_markdown ) {
94
+ return res
95
+ .status (400 )
96
+ .send (' Error: missing fields: "title_markdown ", or "body_markdown "' );
97
97
}
98
98
99
99
const payload = req .body .payload ;
@@ -119,11 +119,11 @@ To build the server to receive webhooks and interact with Slack:
119
119
blocks: [
120
120
{
121
121
type: " header" ,
122
- text: { type: " plain_text " , text: title },
122
+ text: { type: " mrkdwn " , text: title_markdown },
123
123
},
124
124
{
125
125
type: " section" ,
126
- text: { type: " mrkdwn" , text: body },
126
+ text: { type: " mrkdwn" , text: body_markdown },
127
127
},
128
128
],
129
129
};
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ The process of setting up a Teams workflow consists of three key steps:
67
67
}
68
68
}
69
69
},
70
- "title " : {
70
+ "title_markdown " : {
71
71
"type" : " string"
72
72
},
73
- "body " : {
73
+ "body_markdown " : {
74
74
"type" : " string"
75
75
}
76
76
}
@@ -108,11 +108,11 @@ The process of setting up a Teams workflow consists of three key steps:
108
108
},
109
109
{
110
110
"type" : " TextBlock" ,
111
- "text" : " **@{replace(body('Parse_JSON')?['title '], '" ', '\"') }**"
111
+ "text" : " **@{replace(body('Parse_JSON')?['title_markdown '], '" ', '\"') }**"
112
112
},
113
113
{
114
114
"type" : " TextBlock" ,
115
- "text" : " @{replace(body('Parse_JSON')?['body '], '" ', '\"') }",
115
+ "text" : " @{replace(body('Parse_JSON')?['body_markdown '], '" ', '\"') }",
116
116
"wrap" : true
117
117
},
118
118
{
You can’t perform that action at this time.
0 commit comments