|
147 | 147 | "runAfter": {},
|
148 | 148 | "type": "ParseJson"
|
149 | 149 | },
|
150 |
| - "Send_Email_with_SMTP": { |
| 150 | + "Send_an_email_(V2)": { |
151 | 151 | "inputs": {
|
152 |
| - "parameters": { |
153 |
| - "body": "<a href=\"@{parameters('tre_url')}/workspaces/@{body('Parse_JSON')?['data']?['workspace']?['id']}/requests/@{body('Parse_JSON')?['data']?['request']?['id']}\">View the request</a>", |
154 |
| - "from": "@parameters('smtp_from_email')", |
155 |
| - "importance": "Normal", |
156 |
| - "subject": "@variables('message')", |
157 |
| - "to": "@{join(variables('recipients'), ';')}" |
158 |
| - }, |
159 |
| - "serviceProviderConfiguration": { |
160 |
| - "connectionName": "Smtp", |
161 |
| - "operationId": "sendEmail", |
162 |
| - "serviceProviderId": "/serviceProviders/Smtp" |
163 |
| - } |
| 152 | + "body": { |
| 153 | + "Body": "<p>@{concat(parameters('tre_url'),'/workspaces/',body('Parse_JSON')?['data']?['workspace']?['id'],'/requests/',body('Parse_JSON')?['data']?['request']?['id'])}</p>", |
| 154 | + "Importance": "Normal", |
| 155 | + "Subject": "@variables('message')", |
| 156 | + "To": "@{join(variables('recipients'),';')}" |
| 157 | + }, |
| 158 | + "host": { |
| 159 | + "connection": { |
| 160 | + "referenceName": "outlook" |
| 161 | + } |
| 162 | + }, |
| 163 | + "method": "post", |
| 164 | + "path": "/v2/Mail" |
164 | 165 | },
|
165 | 166 | "runAfter": {
|
166 |
| - "Switch_on_request_status": [ |
167 |
| - "Succeeded" |
168 |
| - ] |
| 167 | + "Switch_on_request_status": [ |
| 168 | + "SUCCEEDED" |
| 169 | + ] |
169 | 170 | },
|
170 |
| - "type": "ServiceProvider" |
171 |
| - }, |
| 171 | + "type": "ApiConnection" |
| 172 | + }, |
172 | 173 | "Succeeded": {
|
173 | 174 | "inputs": {
|
174 | 175 | "runStatus": "Succeeded"
|
175 | 176 | },
|
176 | 177 | "runAfter": {
|
177 |
| - "Send_Email_with_SMTP": [ |
| 178 | + "Send_an_email_(V2)": [ |
178 | 179 | "Succeeded"
|
179 | 180 | ]
|
180 | 181 | },
|
|
0 commit comments