-
Notifications
You must be signed in to change notification settings - Fork 30
Added template for executing query on recurrence #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…g the UI which executes a query and sends results on recurrence
| @@ -0,0 +1,305 @@ | |||
| { | |||
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", | |||
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 ", |
There was a problem hiding this comment.
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": [ |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
|
Please update the template data model before making this checkin |
No description provided.