Reputation: 51
I have a table in Azure called Job Status which is a small table, row size of 15. I would like to send entire row as email to users from this table.
I tried logic app in azure but each email corresponds to one row only. I want a single email with all the rows formatted as a table.
Upvotes: 0
Views: 718
Reputation: 51
I could resolve the issue using recurrence,execute a sql query,create html table,and send an email.Recurrence is basically schedule,execute a sql would fetch rows from a table,create html table would do creating excel table in html format,and then send the email
Upvotes: 0
Reputation: 14334
I tried logic app in azure but each email corresponds to one row only.
If you create "Get entities" action and just send email you can find it will create a foreach action, that's because Dynamic content only can get entity one by one.
So you could create a csv table after Get Entities like the pic shows.
In my situation I got an error:
InvalidTemplate. The execution of template action 'Create_CSV_table' failed. The column values could not be evaluated: 'The template language expression 'item()['additionalProperties']' cannot be evaluated because property 'additionalProperties' doesn't exist, available properties are 'odata.etag, PartitionKey, RowKey, Timestamp, Email, PhoneNumber'. Please see https://aka.ms/logicexpressions for usage details.'.
If you occur same problem, you could click Code view, the delete the additionalProperties
part or you could change the keyword to other properties name you want to show in the mail.
After these the mail would like the pic content.
Hope this could help you. If you still have other questions, please let me know.
Upvotes: 1
Reputation: 111
Upvotes: 1