Skip to content

Conversation

@shahparth-lab
Copy link
Contributor

No description provided.

…g the UI which executes a query and sends results on recurrence
@shahparth-lab shahparth-lab requested a review from derek1ee April 27, 2021 21:18
@@ -0,0 +1,305 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also need to update the manifest.json file to include this template.

{
"id": "execute-query-send-result",
"title": "execute-query-send-result",
"description": "Executes and sends you the query results on recurrence",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we address customers as "you", maybe something like "Executes and send query result via e-mail on schedule."

@@ -0,0 +1,305 @@
{
"id": "execute-query-send-result",
"title": "execute-query-send-result",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be UI text

}
},
"method": "post",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('sql-server-tasks.database.windows.net'))},@{encodeURIComponent(encodeURIComponent('sql-sample-tasks'))}/query/sql"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like database/server isn't parameterized.

"inputs": {
"body": {
"Body": "<p>@{body('ExecuteQuery')?['resultsets']}<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n</p>",
"Subject": "Query results from ",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subject/To not parameterized.

"supportedResources": [
"Microsoft.Sql/servers/databases"
],
"excludeResources": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed

"office365": {
"connectionId": "",
"connectionName": "",
"id": "/subscriptions/80d4fe69-c95b-4dd2-a938-9250f1c8ab03/providers/Microsoft.Web/locations/westus/managedApis/office365"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should remove hardcoded sub id here and on line 293

@preetriti1
Copy link
Contributor

Please update the template data model before making this checkin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants