azure-logic-apps

Azure Logic app : How to Send an Email with one or more attachments after getting the content from Blob storage?

不问归期 提交于 2019-12-08 00:21:48
问题 I want to read blob contents using azure logic app get blob contents connector and send that contents as attachment via email using azure logic app send email connector . Attachments could be one or more. Send email requires attachment data in following json format : [ { "ContentBytes": "@{body('Get_blob_content')}", "Name": "Test" } ] 回答1: You could add When a blob is added or modified (properties only) (Preview) as trigger to focus on the Container which you want to listen to. Then add Get

Azure Logic App service bus message content

百般思念 提交于 2019-12-07 06:42:56
问题 I have logic app that is triggered by a service bus. The message content is not usable as it is just random characters. I suspect that perhaps it needs to be parsed but it is not clear how to do this. I have the following: Not enough reputation to add an image - but screen shot from Azure "Insert_Entity": { "inputs": { "body": { "PartitionKey": "deviceID", "RowKey": "@variables('curDate')", "content": "@triggerBody()?['ContentData']" }, When I look at the data that I am getting for the

Deserializing ServiceBus content in Azure Logic App

时间秒杀一切 提交于 2019-12-07 02:09:21
问题 I'm trying to read the content body of a message in an Azure Logic App, but I'm not having much success. I have seen a lot of suggestions which say that the body is base64 encoded, and suggest using the following to decode: @{json(base64ToString(triggerBody()?['ContentData']))} The base64ToString(...) part is decoding the content into a string correctly, but the string appears to contain a prefix with some extra serialization information at the start: @string3http://schemas.microsoft.com/2003

How can I host a TCP Listener in Azure?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 18:19:31
问题 I am looking to build an application in Azure which will act as TCP listener, receive TCP message streams on a specified port, and then add the information to a database. The incoming TCP communication will be secured with a certificate. I'm considering the following options: Cloud Service Worker Role This definitely looks like it will work. However that means I have to use a Cloud Service, and I miss out on the features and simplicity offered by the App Service. The Cloud Service

Getting content from service bus in logic apps

柔情痞子 提交于 2019-12-06 12:05:47
问题 I am new to Azure logic apps. I have a service bus and pass a json object message to that service bus then I set up an action in logic apps to listen to my service bus. So everytime a new message come in to that service bus my logic apps will pick it up and send it to http. My question is how can I grab the property from the message in service bus and pass it to my http action. I tried this “Id” : “@{json(triggerBody()[‘ContentData’]).id}” but it's not working 回答1: Who and how is sending the

Azure Logic Apps - ARM template to deploy filesystem API connection

六月ゝ 毕业季﹏ 提交于 2019-12-06 09:56:28
I am trying to deploy file system API connection using ARM template. I could not find the parametersValue schema for this connection and so tried with naming the parameters as they appear on Azure portal Edit API Connection Screen shot on Azure Portal 1 { "apiVersion": "2016-06-01", "name": "filesystem", "type": "Microsoft.Web/connections", "location": "[resourceGroup().location]", "properties": { "api": { "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/westus/managedApis/filesystem')]" }, "parameterValues": { "displayName": "FileSyetem", "rootFolder": "[parameters(

Convert Json to Poco Collection/ How to code a For Each?

不问归期 提交于 2019-12-06 08:16:14
I'm fairly new to Azure Functions. I've created a C# WebHook / Azure Function (I guess that's the right thing) to take my json content and convert it into a collection of simple poco/dto objects. public static class GenericWebHookCSharp { [FunctionName("GenericWebHookCsharpOne")] public static async Task<HttpResponseMessage /* object */> Run([HttpTrigger(WebHookType = "genericJson")]HttpRequestMessage req, TraceWriter log) { try { log.Info(string.Format("C# GenericWebHookCsharpOne about to process a request. ('{0}')", DateTime.Now.ToLongTimeString())); //IUnityContainer container = new

How do you Authenticate a Logic app microsoft.web/connections connection with code

橙三吉。 提交于 2019-12-06 05:07:18
I have a logic app with an Office 365 connection. Of course I can authenticate this in the portal manually but I would have to do this every time I deploy from my deployment automation pipeline. I have found a post of this but it is no longer available: Authenticating office365 logic app connector with PS The link that is no longer available Here is what I mean in the portal: Any idea how I automate this with say Powershell or az clie or something else? thanks Russ This question was answered by Microsoft: Issue description: You are unable to change the user name for the Office 365 API

Azure Logic App SQL ODATA Filter on Date

天涯浪子 提交于 2019-12-05 19:59:05
I'm creating a new Logic App that reads a table where DateCreated < ADDDAYS(-60,GETDATE()) and updates an Archived bit to 1 . However, I can't for the life of me figure out how to implement that filter as part of the ODATA query. Here's what I'm trying so far: DateCreated lt addDays(utcNow(),-60) However, I get "An unknown function with name 'utcnow' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed.\r\n inner exception: An unknown function with name 'utcnow' was found. This may also be a function import or a key lookup on a navigation

Azure Logic App service bus message content

流过昼夜 提交于 2019-12-05 08:24:47
I have logic app that is triggered by a service bus. The message content is not usable as it is just random characters. I suspect that perhaps it needs to be parsed but it is not clear how to do this. I have the following: Not enough reputation to add an image - but screen shot from Azure "Insert_Entity": { "inputs": { "body": { "PartitionKey": "deviceID", "RowKey": "@variables('curDate')", "content": "@triggerBody()?['ContentData']" }, When I look at the data that I am getting for the "content" coming from the "@triggerBody()?['ContentData']" it looks like this: "W3sidHlwZSI6ImxvZyJ9LF...." I