Azure Logic app querying application insights returning code not html - azure

I have an Azure app that is supposed to query my qna maker bot and return a html table. instead it returns this. I'm following https://microsoft.github.io/slg-covid-bot/docs/telemetry-analytics.html
``` {"attachmentName":"azure_monitor_logs_flow_table_20200702195619.html","attachmentContent":"PHRhYmxlIGJvcmRlcj0iMSIgY2VsbHBhZGRpbmc9IjUiIGNlbGxzcGFjaW5nPSIxIiBib3JkZXJjb2xvcj0iQmxhY2siIHN0eWxlPSJmb250LWZhbWlseTomcXVvdDtTZWdvZSBVSSZxdW90Oztmb250LXNpemU6MTJweDtib3JkZXItY29sbGFwc2U6Y29sbGFwc2U7Ij48dHIgYmdjb2xvcj0iRGFya0dyYXkiPjx0ZCBub3dyYXA9Im5vd3JhcCI+dGltZXN0YW1wPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPktiSWQ8L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+cXVlc3Rpb248L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+YW5zd2VyPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPnNjb3JlPC90ZD48L3RyPjx0cj48dGQgbm93cmFwPSJub3dyYXAiPjcvMi8yMDIwIDEwOjE2OjQ5IEFNPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPmNiM2JkMmYxLTk0ZmItNDE5MC1iZGRkLTA3ZjAyNWJhYTNhMzwvdGQ+PHRkIG5vd3JhcD0ibm93cmFwIj5oaXM8L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+VGhlIFF1aWNrLVBvaW50IGJvdCBjb3VsZCBub3QgZmluZCBhIGRpcmVjdCBhbnN3ZXIgdG8geW91ciBxdWVyeS4gVG8gaW1wcm92ZSBhY2N1cmFjeSwgcGxlYXNlIHVzZSBzcGVjaWZpYyB3b3JkcyBhbmQgcGhyYXNlcy48L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+MDwvdGQ+PC90cj48L3RhYmxlPg==","body":"PHRhYmxlIGJvcmRlcj0iMSIgY2VsbHBhZGRpbmc9IjUiIGNlbGxzcGFjaW5nPSIxIiBib3JkZXJjb2xvcj0iQmxhY2siIHN0eWxlPSJmb250LWZhbWlseTomcXVvdDtTZWdvZSBVSSZxdW90Oztmb250LXNpemU6MTJweDtib3JkZXItY29sbGFwc2U6Y29sbGFwc2U7Ij48dHIgYmdjb2xvcj0iRGFya0dyYXkiPjx0ZCBub3dyYXA9Im5vd3JhcCI+dGltZXN0YW1wPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPktiSWQ8L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+cXVlc3Rpb248L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+YW5zd2VyPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPnNjb3JlPC90ZD48L3RyPjx0cj48dGQgbm93cmFwPSJub3dyYXAiPjcvMi8yMDIwIDEwOjE2OjQ5IEFNPC90ZD48dGQgbm93cmFwPSJub3dyYXAiPmNiM2JkMmYxLTk0ZmItNDE5MC1iZGRkLTA3ZjAyNWJhYTNhMzwvdGQ+PHRkIG5vd3JhcD0ibm93cmFwIj5oaXM8L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+VGhlIFF1aWNrLVBvaW50IGJvdCBjb3VsZCBub3QgZmluZCBhIGRpcmVjdCBhbnN3ZXIgdG8geW91ciBxdWVyeS4gVG8gaW1wcm92ZSBhY2N1cmFjeSwgcGxlYXNlIHVzZSBzcGVjaWZpYyB3b3JkcyBhbmQgcGhyYXNlcy48L3RkPjx0ZCBub3dyYXA9Im5vd3JhcCI+MDwvdGQ+PC90cj48L3RhYmxlPg=="} ```

According to some test in my side, I reproduced your problem. I query the logs in application insight and send it to my email (shown as below screenshot).
In the screenshot above, I use the "Send an email(V2)" action in "Office 365 Outlook" connector but not "Outlook.com" connector.
First we need to make sure the "Chart Type" in "Visualize Analytics query" should be selected as "Html Table". And then, when we put the "Body" into the "Send an email(V2)" action, we need to choose the correct "Body"(because there are two "Body" for us to choose).
Please choose second "Body" and put it into the "Send an email(V2)" action.
If choose the first "Body", you can click the ... icon of the "Send an email(V2)" action, then click "Peek code". We can see it shows as below:
After running the logic app, we will receive the email as you provided.
If we choose second "Body", also open "Peek code", we can see it shows like this:
Run the logic app, it works fine and we will receive the email with html table in it.
So please choose second "Body" and check the "Peek code" if you choose the correct "Body".

Related

Goggle - Cannot create credentials

Cannot create credentials, when I click the "Create credentials" button in the credentials page in console.cloud.google.com, the page will show a list, "API Key", "OUauth client ID", etc as you can see in my screenshot. I want to create an API Key, but the option cannot be clicked, when i set my cursor to the option, "Navigation menu" tooltip appears, and when clicked, it will show the page menu. How do I fix this? Anyone have similar issue? I'm using chrome, trying in firefox but to no avail.

POWERAPPS // SubmitForm // Error msg: "the data returned by the service was invalid"

I have the following problem I hope you can help me with.
So I have created table in Azure, where I write data into it through a form in PowerApps.
In powerapps I have a button with the code "Submitform(FormName)" on onselect.
When I hit that button, then the data is actually written into the table in Azure,
but it then notify me the error "the data returned by the service was invalid"
So my question is.
Is there a way to fix this?
Or is there a way to hide the msg since it actually writes into the table in azure?
[Screenshot][1]
[1]: https://i.stack.imgur.com/Dhgje.jpg

Azure logic apps 'o365 connector' action 'send approval email' returning null for property 'useremailaddress'. Why?

Azure logic apps 'o365 connector' action 'send approval email' returning null for property 'useremailaddress'. Why?
The Azure logic apps documentation for the 'office 365 outlook connector' shows that the 'ApprovalEmailResponse' object returns 'SelectedOption' and 'UserEmailAddress'. I get the correct value back for 'SelectedOption' but 'UserEmailAddress' always returns 'null'.
https://learn.microsoft.com/en-us/connectors/office365/#approvalemailresponse
How do I get the --> email address <-- of the user that selects 'Approve' or 'Reject' buttons in the email? If an email is forwarded to another person I would like to know who (email address) clicked approve or reject.
***This is what I get if I use the recommended settings mentioned in the replies below. For production we want to set "Use only HTML message" and "Show confirmation dialog" both set to "yes".
After reproducing from our end, we understood that the messages which are recorded as HTML messages aren't capturing all the responses. For this, Make sure you have the below parameters set Hide HTML message to 'yes'.
RESPONSE REQUEST IN OUTLOOK
AFTER RESPONSE HAS BEEN RECORDED
UPDATED ANSWER
Logic App outlook connector:
result:
So... It looks like (in this particular action) the only way to get the email address of the person that clicks approve or reject is to not use HTML and to instead rely on using the action card, that is provided by the logic app action, in the email. With 'Hide HTML message' set to 'yes'. However... I was not able to find a way to render my custom card from the one provided in the email. As a workaround, I use markdown in the body of the action. Not great but looks the same as the HTML version I was going-for. If anyone can figure out how to edit/customize the card that is provided in the email by this specific logic app action. Please... let me and Microsoft (sarcasm) know.

Logic App - create table from CSV in email

I am trying to send nice email with table (content from CSV file), similar here:
Email test page
The biggest issue is formatting the table in email.
In Logic App in step "Send an Email" in Body is FILE CONTENT (here screenshot: Logic App Send an Email screenshot. Table is not formatted and looks like:
test
SEP=, "NAME","SKU","TYPE","KIND","PLAN","TAGS","ALIASES","LOCATION","PROPERTIES","RESOURCE GROUP","SUBSCRIPTION","MANAGEDBY","IDENTITY","ZONES","TENANTID","APIVERSION" "VirtualMachine","null","microsoft.security/securitystatusessummaries","","null","null","{}","","{""resourceHealthSummryPerCategory"":[{""category"":""Compute"",""healthy"":null,""medium"":null,""high"":1,""none"":null,""low"":null},{""category"":""Networking"",""healthy"":null,""medium"":null,""high"":1,""none"":null,""low"":null}],""policyAssessmentsSummaries"":[{""policyDefinitionId"":null,""assessmentKey"":""12018f4f-3d10-999b-e4c4-86ec25be08a1"",""category"":""Compute"",""policyName"":""Virtual machines should be migrated to new Azure Resource Manager resources"",""healthy"":1,""medium"":null,""high"":null,""none"":null,""low"":null},{""policyDefinitionId"":null,""assessmentKey"":""3bcd234d-c9csdcs7-c2a2-89e0-c01f41dfv9c1a8a"",""category"":""Compute"",""policyName"":""Endpoint protection health issues should be resolved on your machines"",""healthy"":1,""medium"":null,""high"":null,""none"":null,""low"":null},{""policyDefinitionId"":null,""assessmentKey"":""8e2b96ff-3dedfvfd2-289b-b5c1-3b9921a34dfv41e"",""category"":""Compute"",""policyName"":""Monitoring agent health issues should be resolved on your machines"",""healthy"":1,""medium"":null,""high"":null,""none"":null,""low"":null},{""policyDefinitionId"":null,""assessmentKey"":""83f577bd-adfv1b6-b7e1-0891-12ca19d1dfve6df"",""category"":""Compute"",""policyName"":""Install endpoint protection solution on virtual machines"",""healthy"":1,""medium"":null,""high"":null,""none"":null,""low"":null},{""
I would like to get table instead ugly string.
Do you have any idea how to achieve that ?
For this requirement, I provide a sample below for your reference.
1. I upload a csv file to azure blob storage to simulate your situation.
2. Then search the action "Parse CSV" in you logic app.
3. It will ask you to input "API Key", you need to go to this page first --> click "Start free trial", register an account and create a new API Key.
Copy the secret and paste it to your logic, it will allow you to connect Plumsail.
4. Input the "File Content" and the headers into the box, we can also add a new parameter "Skip first line" and set it "Yes"(this parameter will skip the header line and avoid two lines header in the expect table).
5. Now we need to use "Create HTML table" action to create table by the data from "Parse CSV".
6. After that, we can send the email with the "Output" data from "Create HTML table" action.
7. The email I receive looks like below:

Creating new task through WebHook with Asana API

I am working with a form system very similar to WUFOO that allows me to send data to an external website using WebHooks.
I have been able to connect my form to my ASANA system through Zapier but I cannot seem to get the API system to operate correctly. Can someone please advise or assist me on what I am doing incorrectly here?
In the screenshot note the following:
- Web URL functions for any web URL (https or http)
- HTTP method has POST, PUT, or GET options
- Data format allows me to input virtually anything so I can match up form fields with any necessary names for ASANA.
I simply cannot get the system to connect to ASANA. Please help me.
Screen shot of WebHook Options
I don't have access to your exact form builder but assuming it does what it says it is doing you can try the following. I'll use creating a task as an example.
Create a personal access token in Asana. To do this log in to Asana, click the icon in the top right corner and open "My profile settings". Go to the apps tab and create a personal access token. You will only ever see this token once so create a new one if you lose it. Also retrieve your workspace id, you can get it by opening app.asana.com/api/1.0/workspaces while logged in.
Now back to your form. For the website url place the specific endpoint you want to hit at Asana. For example, lets create a new task:
https://app.asana.com/api/1.0/tasks
Under the HTTP Method you want to select POST
Under the HTTP Headers you want to specify something like (replace 0/1234abcd with your access token):
{
"Authorization": "Bearer 0/1234abcd",
"Content-Type": "application/json"
}
You can use Send Raw Data and specify something like the following in the raw data section (replace 1234 with your workspace id):
{
"data": {
"workspace": 1234,
"name": "The name of the task"
}
}
You can of course add other fields- please see the API reference for more information:
https://asana.com/developers/api-reference/tasks
Let me know if that works for you.

Resources