<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bhavani S on Medium]]></title>
        <description><![CDATA[Stories by Bhavani S on Medium]]></description>
        <link>https://medium.com/@bhavanisgsits?source=rss-98146982b071------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QwVROhTJwABWPY6rekSBkg.jpeg</url>
            <title>Stories by Bhavani S on Medium</title>
            <link>https://medium.com/@bhavanisgsits?source=rss-98146982b071------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:36:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavanisgsits/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sending a Direct Logic App Run-History Link in Failure Emails]]></title>
            <link>https://medium.com/@bhavanisgsits/sending-a-direct-logic-app-run-history-link-in-failure-emails-ad01654b4cb7?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad01654b4cb7</guid>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[azure-integration]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 17:08:01 GMT</pubDate>
            <atom:updated>2026-09-04T08:33:34.831Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a useful real-world Azure Integration pattern because a failure email is much more useful when the recipient can <strong>directly open the failed Logic App run</strong> instead of manually searching through Run History.</p><p>When building Azure Logic Apps, error notification is usually one of the first requirements in a production integration solution.</p><p>A basic failure email might contain:</p><ul><li>Workflow name</li><li>Run ID</li><li>Error message</li><li>Timestamp</li><li>Batch/file information</li></ul><p>But one improvement makes the notification much more useful:</p><p><strong><em>Include a clickable link that takes the support team directly to the failed Logic App run.</em></strong></p><p>Instead of asking the operations team to navigate:</p><pre>Azure Portal<br>   ↓<br>Logic App<br>   ↓<br>Workflow<br>   ↓<br>Run History<br>   ↓<br>Find failed run</pre><p>the email provides:</p><pre>Click here to view run details<br>             ↓<br>Failed Logic App Run</pre><p>This article explains how to implement this pattern dynamically in a Logic App Standard workflow.</p><h3>1. The Requirement</h3><p>Assume we have a Logic App processing batches:</p><pre>File<br> ↓<br>Logic App<br> ↓<br>Validate<br> ↓<br>Transform<br> ↓<br>Send to downstream system</pre><p>If something fails, we want to send an email like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*Bz8mCGgGcYbT5A0UkmXmRQ.png" /></figure><p>The important part is that <strong>Click here to view run details</strong> should dynamically point to the current failed run.</p><h3>2. What Information Is Required?</h3><p>The Azure Portal URL contains several pieces of information:</p><pre>Subscription<br>Resource Group<br>Logic App<br>Workflow<br>Location<br>Run ID</pre><p>For example:</p><pre>Subscription:<br>------------------------<br><br>Resource Group:<br>rg-abc<br>Logic App:<br>la-xyz<br>Workflow:<br>&lt;workflow name&gt;<br>Run ID:<br>&lt;current run&gt;</pre><p>The good thing is that the workflow and run ID don’t need to be hard-coded.</p><p>Logic Apps provides:</p><pre>workflow().name</pre><p>for the workflow name and:</p><pre>workflow().run.name</pre><p>for the current run.</p><h3>3. Create a Variable for the Run Link</h3><p>Create a variable:</p><pre>Name: HistRunLink<br>Type: String</pre><p>Then use a <strong>Set variable</strong> action to construct the URL.</p><p>The expression can be:</p><pre>concat(<br>  &#39;https://portal.azure.com/#view/Microsoft_Azure_EMA/DesignerEditor.ReactView/id/&#39;,<br>  encodeUriComponent(<br>    concat(<br>      &#39;/subscriptions/&#39;,<br>      parameters(&#39;subscriptionId&#39;),<br>      &#39;/resourceGroups/&#39;,<br>      parameters(&#39;resourceGroupName&#39;),<br>      &#39;/providers/Microsoft.Web/sites/&#39;,<br>      parameters(&#39;logicAppName&#39;),<br>      &#39;/workflows/&#39;,<br>      workflow().name<br>    )<br>  ),<br>  &#39;/location/&#39;,<br>  encodeUriComponent(parameters(&#39;location&#39;)),<br>  &#39;/isReadOnly~/false/isMonitoringView~/true/runId/&#39;,<br>  workflow().run.name<br>)</pre><p>The resulting value will look conceptually like:</p><pre>https://portal.azure.com/#view/Microsoft_Azure_EMA/DesignerEditor.ReactView/id/&lt;encoded-resource-id&gt;/location/West%20Europe/isReadOnly~/false/isMonitoringView~/true/runId/&lt;run-id&gt;</pre><p>Because workflow().run.name is dynamic, every execution gets its <strong>own run link</strong>.</p><h3>4. Why Use Parameters?</h3><p>Don’t hard-code this:</p><pre>/subscriptions/f166e976...<br>/resourceGroups/nl-tun-we...<br>/sites/nl-tun...</pre><p>Instead, define environment-specific parameters:</p><pre>subscriptionId<br>resourceGroupName<br>logicAppName<br>location</pre><p>For example:</p><h3>DEV</h3><pre>subscriptionId = DEV subscription<br>resourceGroupName = dev-resource-group<br>logicAppName = dev-logic-app<br>location = West Europe</pre><h3>UAT</h3><pre>subscriptionId = UAT subscription<br>resourceGroupName = uat-resource-group<br>logicAppName = uat-logic-app<br>location = West Europe</pre><h3>PROD</h3><pre>subscriptionId = PROD subscription<br>resourceGroupName = prod-resource-group<br>logicAppName = prod-logic-app<br>location = West Europe</pre><p>This becomes particularly useful when your Logic Apps are deployed through <strong>Bicep + Azure DevOps CI/CD</strong>.</p><p>The workflow itself doesn’t need to change between environments.</p><h3>5. Create the Failure Notification</h3><p>After your main processing logic, implement an error-handling path.</p><p>For example:</p><pre>Trigger<br>   ↓<br>Process Batch<br>   ↓<br>Validate<br>   ↓<br>Transform<br>   ↓<br>Send to downstream<br>   ↓<br>Success</pre><p>And for failure:</p><pre>Process Batch<br>      │<br>      X<br>      ↓<br>Set HistRunLink<br>      ↓<br>Send Failure Email</pre><p>A common Logic Apps pattern is to use a <strong>Scope</strong> around the processing actions and configure the error-handling scope with:</p><pre>Run after:<br>☑ Failed<br>☑ Timed out</pre><p>This keeps the error handling separate from the business processing.</p><h3>6. Email Body</h3><p>Now we can use the HistRunLink variable inside the email body.</p><p>Your HTML expression is:</p><pre>concat(<br>&#39;&lt;html&gt;&lt;body style=\&quot;font-family:Segoe UI, Arial, sans-serif; font-size:14px; color:#333;\&quot;&gt;&#39;,<br><br>&#39;&lt;p&gt;Dear User,&lt;/p&gt;&#39;,<br><br>&#39;&lt;p&gt;An error occurred while processing the messasge. &lt;/p&gt;&#39;,<br><br><br>&#39;&lt;p&gt;&lt;b&gt;Action required:&lt;/b&gt; Reprocess the attached batch. &lt;/p&gt;&#39;,<br>&#39;&lt;p&gt;&lt;b&gt;Run ID:&lt;/b&gt; &#39;, workflow().run.name, &#39;&lt;/p&gt;&#39;,<br><br>&#39;&lt;p&gt;&#39;,<br>&#39;&lt;b&gt;Run details:&lt;/b&gt;&lt;br/&gt;&#39;,<br>&#39;&lt;a href=\&quot;&#39;, variables(&#39;HistRunLink&#39;), &#39;\&quot;&gt;Click here to view run details&lt;/a&gt;&#39;,<br>&#39;&lt;/p&gt;&#39;,<br><br>&#39;&lt;p&gt;Regards,&lt;br/&gt;Logic App System&lt;/p&gt;&#39;,<br><br>&#39;&lt;/body&gt;&lt;/html&gt;&#39;<br>)</pre><p>The email will render approximately as:</p><p><strong>Dear User,</strong></p><p>An error occurred while processing the tariffs.</p><p><strong>Action required:</strong> Reprocess the attached batch.</p><p><strong>Run ID:</strong> 0858527...</p><p><strong>Run details:</strong><br><a href="https://chatgpt.com/c/6a68312e-a60c-83ee-a0ee-090f9adfd431#">Click here to view run details</a></p><p>Regards,<br>Logic App Monitor Team</p><h3>7. Why encodeUriComponent() Is Important</h3><p>The <strong>resource ID</strong> contains special characters such as /, so it should be URL-encoded before being included in the run-history URL.</p><p>Similarly, the <strong>Azure region</strong> may contain spaces. For example:</p><p>West Europe</p><p>should be encoded as:</p><p>West%20Europe</p><p>Using encodeUriComponent() ensures that these values are correctly encoded and the generated URL works reliably.</p><h3><strong>8. Complete Logic App Pattern</strong></h3><p>The overall implementation looks like:</p><pre>Logic App<br>                      │<br>                      ▼<br>                 Process Batch<br>                      │<br>             ┌────────┴────────┐<br>             │                 │<br>          Success            Failure<br>             │                 │<br>             ▼                 ▼<br>          Continue        Set HistRunLink<br>                               │<br>                               ▼<br>                         Send Email<br>                               │<br>                               ▼<br>                     ┌──────────────────┐<br>                     │ Run ID: XXXXX    │<br>                     │                  │<br>                     │ Click here to    │<br>                     │ view run details │<br>                     └──────────────────┘</pre><h3>9. Why This Is Better Than Sending Only the Run ID</h3><p>A run ID by itself isn’t very useful to an operations team.</p><p>For example:</p><pre>Run ID: 0858527...</pre><p>The support engineer still has to find the correct Logic App and search Run History.</p><p>A direct URL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*Bz8mCGgGcYbT5A0UkmXmRQ.png" /></figure><p>This is especially useful when you have:</p><ul><li>Multiple Logic Apps</li><li>Multiple workflows</li><li>High message volumes</li><li>Multiple environments</li><li>Production support teams</li><li>Automated failure notifications</li></ul><h3>10. Important Security Consideration</h3><p>The URL doesn’t bypass Azure security.</p><p>The recipient still needs appropriate Azure permissions to view the Logic App and its run history.</p><p>For example, if someone receives the email but doesn’t have access to the subscription/resource group/Logic App, clicking the link won’t give them access.</p><p>Therefore, make sure your support team has the appropriate <strong>Azure RBAC permissions</strong>.</p><h3>11. Making It CI/CD Friendly</h3><p>Since you’re using Azure DevOps pipelines and Bicep, I’d recommend taking this one step further.</p><p>Keep the environment-specific values outside the workflow logic:</p><pre>parameters/<br>│<br>├── dev.parameters.json<br>├── uat.parameters.json<br>└── prod.parameters.json</pre><p>Your Logic App code remains:</p><pre>parameters(&#39;subscriptionId&#39;)<br>parameters(&#39;resourceGroupName&#39;)<br>parameters(&#39;logicAppName&#39;)<br>parameters(&#39;location&#39;)</pre><p>while the pipeline supplies the appropriate values.</p><p>That gives you:</p><pre>Git<br>               │<br>               ▼<br>        Azure DevOps Pipeline<br>               │<br>       ┌───────┼────────┐<br>       ▼       ▼        ▼<br>      DEV     UAT      PROD<br>       │       │        │<br>       ▼       ▼        ▼<br>    Correct  Correct  Correct<br>    Run URL  Run URL  Run URL</pre><p>No environment-specific hardcoding is required in the workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad01654b4cb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integration Patterns in Azure — Message Router Using Service Bus]]></title>
            <link>https://medium.com/@bhavanisgsits/integration-patterns-in-azure-message-router-using-service-bus-fb7f2b78a78a?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb7f2b78a78a</guid>
            <category><![CDATA[azure-service-bus]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 06:32:10 GMT</pubDate>
            <atom:updated>2026-02-19T06:32:10.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Azure Service Bus Topics. Topics are a great solution if we want to implement a publish subscribe mechanism</p><p>· Capability to send our messages to one or more subscriptions in our topic.</p><p>· Each subscription represents a virtual queue, from where subscribers can pull their messages, allowing receiving systems to process messages at their own speed.</p><p>· Receiver and sender are completely decoupled, so systems can work independently from each other.</p><p>· Topics have dead-lettering capabilities built in, so messages are not lost even in case of issues.</p><p>· Easily add new subscriptions, so we can quickly on-board new systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*669zzvKPkxMSFCVrlleVhA.png" /></figure><p><strong>Scenario:</strong></p><p>The scenario (the architecture is from a real project I did while working for one of Theta’s clients, the application is made up for this post) to build these integrations is that I want to have the ability to receive order requests for particular meals and based on the content of the request I want to route to specific integrations</p><p><strong>Covering the basics</strong></p><p>The picture below shows the structure I’m going to need to have this working. Here are the links for Logic Apps and Service Bus Topics creation in case you need some help in these areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRB6Lp1txkH7YNtobZLwGQ.png" /></figure><p><strong>Gastronomical advice</strong></p><p>As you can see part of the names of the Logic Apps are in English because I’m referring to some good restaurants we have in India that I like and miss a lot by living overseas. If anyone that reads this is ever going to Punjab, you need to try them.</p><p><strong>Publisher</strong></p><p>In the picture above I have 4 Logic Apps and one Service Bus. The first integration to be triggered is the WebAppToServiceBus. It will be receiving Http calls from an application (web or mobile) and will send a message to a Service Bus Topic by promoting some content of the request as properties on the messagebox topic. The other three Logic Apps will be triggered based on filtering the properties to receive only messages related to the meals they can make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*BlLMByCxyWiSPVpz2jzTlw.png" /></figure><p><strong>Subscribers</strong></p><p>The Logic App LA-SouthIndian-Subscriber is going to make API Calls to the SouthIndian restaurant API by using an HTTP connector whenever the order is for the SouthIndian meal.</p><p>The Logic App LA-Punjabi-Subscriber is going to send an email message to the Punjabi restaurant by using the Email connector whenever the order is for the Punjabi meal.</p><p>The last Logic App is LA-Chinese_Subscriber , that is going to send SMS messages to the Chinese restaurant by using the Twilio connector whenever the order is for the Chinese meal.</p><p><strong>Service Bus Structure</strong></p><p>The Service Bus will contain only one topic called “mealorders” (any similarity with names used in other integration tools are a mere coincidence — or not ). In this topic I’ll have 3 subscriptions with specific filters to match the conditions I need:</p><p>· Subscription: ToChinese</p><p>Filter: Meal= Chinese</p><p>· Subscription: ToSouthIndian</p><p>Filter: Meal= SouthIndian</p><p>· Subscription: ToPunjabi</p><p>Filter: Meal= Punjabi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*JEuA-lrm6ZO-W2jAmLIRvQ.png" /></figure><p>You can use the Azure portal to create the topic, but even though you can create the subscriptions, you can’t change the filter there. You will need to use others tools for that. I’m using the Service Bus Explorer or you can code one application for yourself.</p><p><strong>Logic Apps Flows</strong></p><p>For the Logic let me show you how I developed them.</p><p><strong>WebAppToServiceBus</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*PrsibtFhrfdfs8npTBKHHw.png" /></figure><p>The only responsibility of this Logic App is to receive an HTTP call and send a message to the mealorders topic. See that I’m sending to Service Bus the body of the message I’m receiving on the HTTP call both on the Content property as well on the Properties property. The reason for that is that we can only apply a filter on the properties of the message and not on the content.</p><p>Now that we have this Logic App, let’s make some calls and check if the messages are being published on the service bus. For this, I’ll use Postman and this is the expected JSON on the Logic App. Remember that these properties names will be used in the subscriptions filters in the Service Bus.</p><p>If the response you have is the same as above, open the Service Bus Explorer or any other tool you have and check the message.</p><p>Since my message was specifying the meal as SouthIndian, I checked the subscription ToSouthIndian that is filtering this value. Also, note that we have in the picture the Message Text (that is the message content sent) and Message Custom Properties (that is the properties I specified in the Logic App). Again, the filter is happening on the properties, not on the content.</p><p>Try a few different values and check if the routing on the subscriptions is working ok. Once you confirm that, let’s do the other Logic Apps flows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*2tTpGctz1vYf8K8m1FaUNA.png" /></figure><p><strong>ServiceBusToSouthIndian</strong></p><p>As you can see below, I’m using the Service Bus connector and I’m using the trigger option to receive a message in a topic subscription in peek-lock mode. I want that in case my communication with the API fails, I have the ability to leave the message in the topic to try again later. I’m using a request bin for the sake of this post.</p><p>You can use Outlook connector in place of HTTP Connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*zRzfKAyU93taWPWiSTdBXQ.png" /></figure><p><strong>ServiceBusToPunjab</strong></p><p>For this Logic App, I’m using the Outlook.com connector, but be aware that you also have the Outlook 365 connector. The first one for Hotmail and outlook.com accounts and the second one for Outlook 365 accounts.</p><p>This time I’m using the auto-complete when picking the messages and working around email approvals to send a notification back to the client when their order is ready. Note that I’m using a few expressions to extract data from the message content or properties to use when sending emails. Check Logic App Expressions documentation.</p><p>· @{json(base64ToString(triggerBody()?[‘ContentData’]))?[‘Meal’]} -&gt; to get the Meal name</p><p>· @{triggerBody()?[‘Properties’]?[‘Email’]} -&gt; to get the email of the client</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*93z5b71E4g9ff6oXRHwp0A.png" /></figure><p><strong>ServiceBusToChinese</strong></p><p>In the last Logic App I will use the Twilio connector to send SMS messages. The idea is that this restaurant don’t have much more than a phone to receive SMS messages since they have only a tent in a street farmers market.</p><p>When I make calls on the first Logic App passing the parameters that match with the filters for this Logic App, I’ll receive the SMS on the phone number that was specified on the request as you can see below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*DKrvYyQvuTgDhWNvkEQwsQ.png" /></figure><p><strong>Summary</strong></p><p>So to finalize, you see how easy is to implement the same architecture that we have in integration products like BizTalk easily. I just used Logic Apps flows, but it’s possible to implement also with Azure Functions.</p><p>Hope you guys like, and please give me some comments and advice on this post and ideas for next posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb7f2b78a78a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding PGP Message Encryption: A Complete Guide]]></title>
            <link>https://medium.com/@bhavanisgsits/understanding-pgp-message-encryption-a-complete-guide-365d27f1600c?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/365d27f1600c</guid>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[pgp]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 12:42:56 GMT</pubDate>
            <atom:updated>2025-11-23T12:42:56.683Z</atom:updated>
            <content:encoded><![CDATA[<p>Pretty Good Privacy (PGP) is one of the most trusted methods for securing sensitive data during transmission. Whether you’re sending healthcare files, financial documents, or confidential business information, PGP protects your message using a powerful combination of <strong>encryption</strong>, <strong>digital signatures</strong>, and <strong>key pairs</strong>.</p><p>This blog will help you understand: — What PGP keys are — How encryption and signing work — When public and private keys are used — End-to-end message flow — A simple diagram to visualize the concept</p><h3>🔐 What Are PGP Keys?</h3><p>PGP uses <strong>asymmetric cryptography</strong>, meaning it works with a pair of keys:</p><h3>1. Public Key</h3><p>· Shared openly with anyone</p><p>· Used to <strong>encrypt</strong> data</p><p>· Used to <strong>verify</strong> a digital signature</p><h3>2. Private Key</h3><p>· Kept secret by the owner</p><p>· Used to <strong>decrypt</strong> data</p><p>· Used to <strong>create/sign</strong> a digital signature</p><h3>🧭 Key Rule Summary</h3><p>· <strong>Encryption = Always done using the recipient’s Public Key</strong></p><p>· <strong>Decryption = Always done using the recipient’s Private Key</strong></p><p>· <strong>Signing = Always done using the sender’s Private Key</strong></p><p>· <strong>Signature Verification = Always done using the sender’s Public Key</strong></p><p>These rules ensure confidentiality, integrity, and authenticity.</p><h3>🔒 How PGP Encryption Works (Step-by-Step)</h3><p>Here is the typical flow when sending a secure PGP message:</p><h3>Step 1: Sender Gets Recipient’s Public Key</h3><p>The sender obtains the public key of the person they want to send the message to.</p><h3>Step 2: Sender Encrypts the Message</h3><p>The sender uses the <strong>recipient’s public key</strong> to encrypt the message. Only the matching <strong>private key</strong> can decrypt it.</p><h3>Step 3: Sender Applies Digital Signature (Optional but recommended)</h3><p>The sender signs the message using their <strong>private key</strong>. This proves: — The sender really sent the message (authenticity) — The message was not altered (integrity)</p><h3>Step 4: Receiver Verifies Signature</h3><p>Receiver uses the <strong>sender’s public key</strong> to verify the signature.</p><h3>Step 5: Receiver Decrypts the Message</h3><p>Receiver decrypts using their <strong>private key</strong>.</p><h3>📊 Diagram: How Encryption, Signing, and Decryption Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*2yM6LSAhzCznU9wvG1SFGQ.png" /></figure><h3>🎯 Why This Matters</h3><p>PGP ensures: — <strong>Confidentiality</strong> — Only the intended receiver can decrypt the data. — <strong>Integrity</strong> — No unauthorized changes can go unnoticed. — <strong>Authentication</strong> — Digital signatures verify who sent the message. — <strong>Non-repudiation</strong> — Senders cannot deny sending a signed message.</p><h3>📝 Final Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*JXoTzZChTa61iRzuYH95Zg.png" /></figure><p>PGP is powerful, secure, and widely used for enterprise integrations, including BizTalk, Azure Functions, Logic Apps, and financial/healthcare data exchanges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=365d27f1600c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modernizing Data Transformations with Azure Logic Apps: A Hands-on Guide to the Data Mapper]]></title>
            <link>https://medium.com/@bhavanisgsits/modernizing-data-transformations-with-azure-logic-apps-a-hands-on-guide-to-the-data-mapper-fbd7f53d6a52?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd7f53d6a52</guid>
            <category><![CDATA[logic-apps]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[data-mapper]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 16:39:57 GMT</pubDate>
            <atom:updated>2025-07-26T16:39:57.669Z</atom:updated>
            <content:encoded><![CDATA[<p>Data transformation is a core requirement in almost every integration project, whether you’re connecting APIs, databases, or enterprise systems. With Azure Logic Apps (Standard), Microsoft introduces a powerful, modernized Data Mapper to make these transformations intuitive, visual, and flexible.<br> <br> In this blog, I’ll explore how the Logic App Data Mapper simplifies complex mappings between formats like XML and JSON — and walk through step-by-step usage with helpful visuals.</p><h3>What is the Logic Apps Data Mapper?</h3><p>Azure Logic Apps Data Mapper is a visual tool for designing transformations between:<br> — XML to XML<br> — JSON to JSON<br> — XML to JSON<br> — JSON to XML<br> <br> It provides:<br> — Drag-and-drop gestures<br> — Prebuilt function library<br> — Custom extensibility<br> — Built-in testing features<br> <br> Once a map is created, it can be called from Logic App workflows in both Visual Studio Code and the Azure Portal.</p><h3>Getting Started with the Data Mapper</h3><h3>Step 1: Open/Create a Logic App Standard Project</h3><p>Open Visual Studio Code and either create a new Logic App Standard project or open an existing one.</p><h3>Step 2: Create a Data Map</h3><ol><li>Right-click on the Artifacts folder in your project.<br> 2. Select Create Data Map.<br> 3. Enter the map name and press Enter.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*exuCmeAbGOpf1vA072zbjA.png" /></figure><h3>Step 3: Open the Mapping Canvas</h3><p>After creating the map, a visual canvas opens up where you can:<br> — Select a source schema<br> — Select a target schema</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*65VdbH7YYwbgkGYhw6AvTg.png" /></figure><h3>Step 4: Select Source and Target Schemas</h3><p>Choose schemas from the Artifacts\Schemas folder:<br> — Source schema defines the input structure.<br> — Target schema defines the desired output structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*-2Zag6hacOkHXCQdYoH5oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*z-ZMtK9asI6wJP-icMitJg.png" /></figure><h3>Step 5: Drag-and-Drop Field Mapping</h3><p>You can now visually drag fields from the source to the target. The mapper supports:<br> — One-to-one mappings<br> — Nested and complex structures<br> — Conditional logic<br> — Type conversions<br> <br> Additionally, you can:<br> — Apply prebuilt functions (like concat, substring, if, etc.)<br> — Use custom expressions for logic and formatting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nxmJBrgPkvgORpxHbgDQUA.png" /></figure><h3>Save and Output Format</h3><p>The saved map is stored in:<br> 📁 Artifacts\MapDefinitions<br> <br> File extension: .lml (Logic Mapping Language)<br> <br> Note: .lml is a metadata format describing your visual map, not the actual XSLT.</p><h3>Generate and Test XSLT (Optional)</h3><p>If your schemas are XML-based (or JSON schemas are internally converted to XML), you can:<br> — Export the XSLT 3.0 generated by the tool<br> — Provide a sample input message to test the output directly from the UI<br> <br> This XSLT can then be used in your logic app workflow.</p><h3>Runtime Integration in Logic App Workflows</h3><p>There are two main actions to invoke your mappings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*RLEvpkNjQUxDj6LMG-p7IQ.png" /></figure><h3>BizTalk vs Logic App Data Mapper</h3><p>Comparison between traditional BizTalk Mapper and Logic App Data Mapper:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*DE50Zn82OZV-Z3_o0SCEhQ.png" /></figure><h3>Pro Tip: JSON-to-JSON Does Generate XSLT (When Schemas are Converted)</h3><p>Even when your goal is JSON to JSON, if your schemas are inferred as XML schemas, Logic App Data Mapper will still generate a valid XSLT 3.0 file. This allows you to:<br> — Convert incoming JSON to XML<br> — Apply the XSLT transformation<br> — Convert output XML back to JSON</p><h3>Conclusion</h3><p>The Logic App Data Mapper is a massive leap forward in simplifying data transformation scenarios. Whether you’re a BizTalk veteran or new to integration, this tool provides a fast, flexible, and maintainable approach to mapping structured data across formats.<br> <br> If you’re working in enterprise integration, cloud migrations, or API orchestration — this is a tool worth mastering.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd7f53d6a52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Logic App Flow: Automating Email Attachment Processing and Data Integration]]></title>
            <link>https://medium.com/@bhavanisgsits/azure-logic-app-flow-automating-email-attachment-processing-and-data-integration-fb05814600d2?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb05814600d2</guid>
            <category><![CDATA[azure-integration]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[logic-app-parameters]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Mon, 31 Mar 2025 09:07:38 GMT</pubDate>
            <atom:updated>2025-03-31T09:07:38.412Z</atom:updated>
            <content:encoded><![CDATA[<p>This document describes the Logic App flow that processes incoming emails, extracts Excel attachments, uploads them to Azure Storage, converts them to CSV, and triggers an Azure Data Factory (ADF) pipeline to load data into an Azure SQL Database.</p><h3>Step 1: Trigger — When a New Email Arrives (V3)</h3><p>• Action: Use the Office 365 Outlook / Gmail trigger → ‘When a new email arrives (V3).’</p><p>• Configuration:</p><p>- Optionally filter emails by sender, subject, or other criteria.</p><p>- Ensure the email contains attachments (hasAttachments = true).</p><h3>Step 2: Loop Through Attachments</h3><p>• Action: Use ‘Apply to Each’ loop to process each attachment in the email.</p><p>• Input: Attachments array from the email trigger.</p><h3>Step 3: Filter Attachments (Only Accept Excel Files)</h3><p>• Action: Use a ‘Condition’ inside the loop to check file extensions.</p><ul><li>Condition Expression:</li></ul><pre>@or(endsWith(items(&#39;Apply_to_each&#39;)?[&#39;name&#39;], &#39;.xlsx&#39;), endsWith(items(&#39;Apply_to_each&#39;)?[&#39;name&#39;], &#39;.xls&#39;))</pre><h3>Step 4: Upload Excel File to Azure Storage Account</h3><p>• Action: Use ‘Create Blob’ action in Azure Blob Storage.</p><p>• Configuration:</p><p>- Storage Account: Select the target Azure Storage account.</p><p>- Container Name: Specify the container where Excel files will be stored.</p><p>- Blob Name: Use items(‘Apply_to_each’)?[‘name’] to maintain the original filename.</p><p>- Blob Content: Use items(‘Apply_to_each’)?[‘contentBytes’] to upload the file content.</p><h3>Step 5: Call Azure Function to Convert Excel to CSV</h3><p>• Action: Use ‘HTTP’ action to trigger an Azure Function App.</p><p>• Configuration:</p><p>- Method: POST</p><p>- URL: Azure Function’s endpoint.</p><p>- Headers: Content-Type: application/json</p><p>- Body:</p><pre>{<br> &quot;filePath&quot;: &quot;path/to/blob/excel-file.xlsx&quot;,<br> &quot;storageAccount&quot;: &quot;your-storage-account&quot;<br> }</pre><h3>Step 6: Trigger ADF Pipeline to Load CSV into Azure SQL Database</h3><p>• Action: Use ‘Invoke Pipeline’ action in Azure Data Factory (ADF).</p><p>• Configuration:</p><p>- ADF Pipeline Name: LoadCSVtoSQL.</p><p>- Parameters:</p><p>- FilePath: Path of the converted CSV file in Blob Storage.</p><p>- DatabaseName: Target Azure SQL Database.</p><h3>Step 7: Completion &amp; Notifications</h3><p>• Action: Use ‘Send an email’ to notify about success or failure.</p><p>• Configuration:</p><p>- If all steps succeed, send a confirmation email with details of processed files.</p><p>- If any step fails, send an error notification with details of the failure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb05814600d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to Create a Logic App Custom HTTP Connector with Connection & Authentication Parameters]]></title>
            <link>https://medium.com/@bhavanisgsits/steps-to-create-a-logic-app-custom-http-connector-with-connection-authentication-parameters-803d886a86c8?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/803d886a86c8</guid>
            <category><![CDATA[logic-apps]]></category>
            <category><![CDATA[logic-app-connectors]]></category>
            <category><![CDATA[logic-app-parameters]]></category>
            <category><![CDATA[azure-integration]]></category>
            <category><![CDATA[azureintegrationservices]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Thu, 20 Feb 2025 15:12:07 GMT</pubDate>
            <atom:updated>2025-02-20T15:15:44.189Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>Custom Connector</strong> in Azure Logic Apps allows you to integrate APIs with authentication and dynamic parameters. Follow these steps to create an HTTP-based custom connector that includes <strong>connection parameters and authentication</strong>.</p><h3>Step 1: Create a Custom Connector in Azure</h3><ol><li><strong>Go to Azure Portal</strong> → Search for <strong>“Logic App Custom Connectors”</strong> and select it.</li><li>Click <strong>“New custom connector”</strong> → Choose <strong>“Create from blank”</strong>.</li><li>Enter a <strong>Connector Name</strong> and choose the <strong>Resource Group</strong>.</li><li>Click <strong>Continue</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*cmqA22Zwp1PT290hW_MLLA.png" /></figure><h3>Step 2: Define General API Information</h3><ol><li><strong>Host URL</strong>: Enter the base URL of the API (e.g.<a href="https://api.example.com)./">https://api.example.com)</a></li><li><strong>Scheme</strong>: Select <strong>HTTPS</strong>.</li><li><strong>API Definition</strong>: Choose <strong>Swagger/OpenAPI format</strong> (or enter manually).</li></ol><h3>Step 3: Set Up Authentication</h3><ol><li>Navigate to the <strong>Security</strong> tab.</li><li>Choose the authentication type:</li></ol><ul><li><strong>API Key</strong>: Requires a key in the header/query string.</li><li><strong>OAuth 2.0</strong>: If using OAuth, provide the <strong>Client ID, Secret, Token URL, and Scopes</strong>.</li><li><strong>Basic Authentication</strong>: Username &amp; Password fields.</li></ul><h3>Step 4: Define Connection Parameters</h3><ol><li>Go to the <strong>Definition</strong> tab → Click <strong>“New Parameter”</strong>.</li><li>Add required fields (e.g., API key, Client ID, Base URL, etc.).</li><li>Mark <strong>“Required”</strong> if it is mandatory.</li><li>Click <strong>Save</strong>.</li></ol><h3>Step 5: Define Actions (HTTP Methods)</h3><ol><li>Click <strong>“New Action”</strong> → Enter a <strong>summary and description</strong>.</li><li>Choose the HTTP method (GET, POST, PUT, DELETE).</li><li>Define the <strong>request parameters</strong> (e.g., body, headers, query).</li><li>Define the <strong>response format</strong> (JSON/XML).</li></ol><h3>Step 6: Test the Custom Connector</h3><ol><li>Click <strong>Test</strong> → Provide authentication details.</li><li>Execute a test request to verify functionality.</li><li>If successful, save and <strong>use the connector</strong> in your Logic App.</li></ol><h3>Make the Connector Available for Others</h3><p>Once deployed, you can share the <strong>Custom Connector</strong> across multiple <strong>Logic Apps</strong> or <strong>Power Automate Flows</strong>.</p><h3>Option 1: Share within the Organization</h3><ol><li>Navigate to <strong>Custom Connectors</strong> in the Azure Portal.</li><li>Click on the <strong>Connector Name</strong>.</li><li>Under the <strong>“Access Control (IAM)”</strong> section, add users or groups with <strong>Contributor</strong> or <strong>Logic App Operator</strong> roles.</li><li>Click <strong>Save</strong>.</li></ol><h3>Option 2: Publish to API Management (APIM)</h3><ol><li>Navigate to <strong>API Management</strong> in Azure Portal.</li><li>Click <strong>APIs</strong> → Select <strong>Custom Connector API</strong>.</li><li>Click <strong>Expose API</strong> to make it available for external applications.</li><li>Generate <strong>subscription keys</strong> and share them with users</li></ol><h3>Use the Connector in Other Logic Apps</h3><ol><li>Open <strong>Logic Apps Designer</strong>.</li><li>Click <strong>“Add an action”</strong>.</li><li>Search for your <strong>Custom Connector</strong> (It should now be listed).</li><li>Click <strong>Sign In</strong> (if authentication is required) and configure the action.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=803d886a86c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Processing CSV in Azure Logic Apps Using Integration Account Schema]]></title>
            <link>https://medium.com/@bhavanisgsits/processing-csv-in-azure-logic-apps-using-integration-account-schema-1dc51356b8c2?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dc51356b8c2</guid>
            <category><![CDATA[csv-file]]></category>
            <category><![CDATA[azure-integration]]></category>
            <category><![CDATA[function-app]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[ide]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 14:47:28 GMT</pubDate>
            <atom:updated>2025-02-15T14:47:28.984Z</atom:updated>
            <content:encoded><![CDATA[<p>To process a <strong>CSV file</strong> in <strong>Azure Logic Apps</strong> using an <strong>Integration Account Schema (XSD)</strong>, follow these steps:</p><p><strong>Steps to Process CSV in Logic Apps</strong></p><p><strong>1️. Upload the Schema (XSD) to the Integration Account</strong></p><p>Go to Azure Portal → Search for Integration Account.</p><p>Open the Integration Account and go to the Schemas section.</p><p>Upload your XSD schema (which defines the expected CSV format).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XFl7roZlk2Zha6TiVJ5zA.png" /></figure><p><strong>Use Logic App to Process CSV</strong></p><p><strong>Trigger</strong>:</p><p>· Use an <strong>Azure Blob Storage Trigger</strong> (when a new CSV file is uploaded)</p><p>· OR Use an <strong>SFTP Trigger</strong> if the file is stored externally.</p><p><strong>Read the CSV Content</strong>:</p><p>· Use the <strong>&quot;Get Blob Content&quot;</strong> action to read the file.</p><p><strong>Transform CSV to XML Using Enterprise Integration Transform</strong>:</p><p>· Add the <strong>&quot;Flat File Decoding&quot;</strong> action (under Enterprise Integration)</p><p>· Select the <strong>Integration Account</strong> and choose the uploaded <strong>XSD schema</strong></p><p>· This will convert the <strong>CSV to XML</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*PRuCgSVzz86Z0fv4IQz9xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*SXG8aqqqBWHikICqUu0tyQ.png" /></figure><p><strong>Process the Data</strong>:</p><p>· Use the <strong>&quot;For Each&quot;</strong> action to iterate through rows.</p><p>· Use conditions and transformations as needed.</p><p><strong>Store or Send Processed Data</strong>:</p><p>· Save the transformed data to <strong>Azure SQL Database, Blob Storage, or Cosmos DB</strong>.</p><h3><strong>Alternative Approach (if XSD is not available)</strong></h3><p>If you don’t have an XSD schema, you can use <strong>Azure Functions</strong> to parse the CSV and integrate it with Logic Apps.</p><p>Code to convert CSV to Json Array</p><pre> string source = await new StreamReader(req.Body).ReadToEndAsync();<br>                //dynamic data = JsonConvert.DeserializeObject&lt;DataTable&gt;(source);<br>                source=source.Replace(System.Environment.NewLine, &quot;#NewLine#&quot;);<br>                JsonResult resultSet = new JsonResult();<br>                string[] csvLines = source.Split(&quot;#NewLine#&quot;);<br>                log.LogInformation(&quot;New Line Char:--&gt;&quot; + System.Environment.NewLine.ToString());<br>                log.LogInformation(&quot;Number of Records:--&gt;&quot;+ csvLines.Length);<br>                var headers = csvLines[0].Trim().Split(&#39;,&#39;).ToList&lt;string&gt;();<br>                foreach (var line in csvLines.Skip(1))<br>                { <br>                   // string  newline= line.Replace(&quot;\n&quot;, &quot;&quot;);<br>                    if (line.Trim() != string.Empty &amp;&amp; line!= System.Environment.NewLine)<br>                    {<br>                        var lineObject = new JObject();<br>                        var lineAttr = line.Split(&#39;,&#39;);<br>                        for (int x = 0; x &lt; headers.Count; x++)<br>                        {<br>                            lineObject[headers[x]] = lineAttr[x].Trim();<br>                        }<br>                        resultSet.rows.Add(lineObject);<br>                    }<br>                }<br>                return new OkObjectResult(resultSet);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dc51356b8c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Constructing dynamic message structures using Logic Apps]]></title>
            <link>https://medium.com/@bhavanisgsits/creating-construct-dynamic-message-structure-with-the-help-of-logic-app-abff4a2f660d?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/abff4a2f660d</guid>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-integration]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Sun, 19 Jan 2025 17:36:55 GMT</pubDate>
            <atom:updated>2025-01-19T17:38:52.060Z</atom:updated>
            <content:encoded><![CDATA[<p>There are scenarios where we need to construct dynamic messages without relying on XSLT or Liquid templates.</p><p>In the following example, we receive a JSON array and need to generate an XML message containing multiple record sets.</p><p>While it is clear that this requirement can be easily achieved using a Function App, the challenge lies in implementing the same functionality within a Logic App.</p><p>Logic App:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*fePK0eO_z7sKBp84hd348A.png" /></figure><p>Code View:</p><pre>{<br>    &quot;definition&quot;: {<br>        &quot;$schema&quot;: &quot;https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#&quot;,<br>        &quot;contentVersion&quot;: &quot;1.0.0.0&quot;,<br>        &quot;triggers&quot;: {<br>            &quot;When_a_HTTP_request_is_received&quot;: {<br>                &quot;type&quot;: &quot;Request&quot;,<br>                &quot;kind&quot;: &quot;Http&quot;,<br>                &quot;inputs&quot;: {<br>                    &quot;schema&quot;: {<br>                        &quot;type&quot;: &quot;object&quot;,<br>                        &quot;properties&quot;: {<br>                            &quot;PersonalDetails&quot;: {<br>                                &quot;type&quot;: &quot;array&quot;,<br>                                &quot;items&quot;: {<br>                                    &quot;type&quot;: &quot;object&quot;,<br>                                    &quot;properties&quot;: {<br>                                        &quot;FIRST_NAME&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        },<br>                                        &quot;LAST_NAME&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        },<br>                                        &quot;TEL_NUMBER&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        },<br>                                        &quot;MOB_NUMBER&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        },<br>                                        &quot;Email&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        },<br>                                        &quot;COUNTRY&quot;: {<br>                                            &quot;type&quot;: &quot;string&quot;<br>                                        }<br>                                    },<br>                                    &quot;required&quot;: [<br>                                        &quot;FIRST_NAME&quot;,<br>                                        &quot;LAST_NAME&quot;,<br>                                        &quot;TEL_NUMBER&quot;,<br>                                        &quot;MOB_NUMBER&quot;,<br>                                        &quot;Email&quot;,<br>                                        &quot;COUNTRY&quot;<br>                                    ]<br>                                }<br>                            }<br>                        }<br>                    }<br>                }<br>            }<br>        },<br>        &quot;actions&quot;: {<br>            &quot;For_each&quot;: {<br>                &quot;type&quot;: &quot;Foreach&quot;,<br>                &quot;foreach&quot;: &quot;@triggerBody()?[&#39;PersonalDetails&#39;]&quot;,<br>                &quot;actions&quot;: {<br>                    &quot;Compose&quot;: {<br>                        &quot;type&quot;: &quot;Compose&quot;,<br>                        &quot;inputs&quot;: &quot;&lt;Person&gt;\n &lt;FIRST_NAME&gt;@{items(&#39;For_each&#39;)?[&#39;FIRST_NAME&#39;]} &lt;/FIRST_NAME&gt;\n  &lt;LAST_NAME&gt;@{items(&#39;For_each&#39;)?[&#39;LAST_NAME&#39;]}&lt;/LAST_NAME&gt;\n  &lt;TEL_NUMBER&gt;@{items(&#39;For_each&#39;)?[&#39;TEL_NUMBER&#39;]}&lt;/TEL_NUMBER&gt;\n  &lt;MOB_NUMBER&gt;@{items(&#39;For_each&#39;)?[&#39;MOB_NUMBER&#39;]}&lt;/MOB_NUMBER&gt;\n  &lt;Email&gt;@{items(&#39;For_each&#39;)?[&#39;Email&#39;]}&lt;/Email&gt;\n  &lt;COUNTRY&gt;@{items(&#39;For_each&#39;)?[&#39;COUNTRY&#39;]}&lt;/COUNTRY&gt;\n&lt;/Person&gt;&quot;<br>                    },<br>                    &quot;Append_to_string_variable&quot;: {<br>                        &quot;type&quot;: &quot;AppendToStringVariable&quot;,<br>                        &quot;inputs&quot;: {<br>                            &quot;name&quot;: &quot;varmsg&quot;,<br>                            &quot;value&quot;: &quot;@outputs(&#39;Compose&#39;)&quot;<br>                        },<br>                        &quot;runAfter&quot;: {<br>                            &quot;Compose&quot;: [<br>                                &quot;Succeeded&quot;<br>                            ]<br>                        }<br>                    }<br>                },<br>                &quot;runAfter&quot;: {<br>                    &quot;Initialize_variable&quot;: [<br>                        &quot;Succeeded&quot;<br>                    ]<br>                }<br>            },<br>            &quot;Initialize_variable&quot;: {<br>                &quot;type&quot;: &quot;InitializeVariable&quot;,<br>                &quot;inputs&quot;: {<br>                    &quot;variables&quot;: [<br>                        {<br>                            &quot;name&quot;: &quot;varmsg&quot;,<br>                            &quot;type&quot;: &quot;string&quot;,<br>                            &quot;value&quot;: &quot;&lt;Persons&gt;&quot;<br>                        }<br>                    ]<br>                },<br>                &quot;runAfter&quot;: {}<br>            },<br>            &quot;Response&quot;: {<br>                &quot;type&quot;: &quot;Response&quot;,<br>                &quot;kind&quot;: &quot;Http&quot;,<br>                &quot;inputs&quot;: {<br>                    &quot;statusCode&quot;: 200,<br>                    &quot;body&quot;: &quot;@variables(&#39;varmsg&#39;)&quot;<br>                },<br>                &quot;runAfter&quot;: {<br>                    &quot;Append_to_string_variable_1&quot;: [<br>                        &quot;Succeeded&quot;<br>                    ]<br>                }<br>            },<br>            &quot;Append_to_string_variable_1&quot;: {<br>                &quot;type&quot;: &quot;AppendToStringVariable&quot;,<br>                &quot;inputs&quot;: {<br>                    &quot;name&quot;: &quot;varmsg&quot;,<br>                    &quot;value&quot;: &quot;&lt;/Persons&gt;&quot;<br>                },<br>                &quot;runAfter&quot;: {<br>                    &quot;For_each&quot;: [<br>                        &quot;Succeeded&quot;<br>                    ]<br>                }<br>            }<br>        },<br>        &quot;outputs&quot;: {},<br>        &quot;parameters&quot;: {<br>            &quot;$connections&quot;: {<br>                &quot;type&quot;: &quot;Object&quot;,<br>                &quot;defaultValue&quot;: {}<br>            }<br>        }<br>    },<br>    &quot;parameters&quot;: {<br>        &quot;$connections&quot;: {<br>            &quot;value&quot;: {}<br>        }<br>    }<br>}</pre><p>Input:</p><pre>{<br>&quot;PersonalDetails&quot;:<br>[{<br>  &quot;FIRST_NAME&quot;: &quot;smith1&quot;,<br>  &quot;LAST_NAME&quot;: &quot;Joe1&quot;,<br>  &quot;TEL_NUMBER&quot;: &quot;+910000000&quot;,<br>  &quot;MOB_NUMBER&quot;: &quot;+910000000&quot;,<br>  &quot;Email&quot;: &quot;john.doe@example.com&quot;,<br>  &quot;COUNTRY&quot;: &quot;India&quot;<br>},<br>{<br>   &quot;FIRST_NAME&quot;: &quot;smith2&quot;,<br>  &quot;LAST_NAME&quot;: &quot;Joe2&quot;,<br>  &quot;TEL_NUMBER&quot;: &quot;+910000000&quot;,<br>  &quot;MOB_NUMBER&quot;: &quot;+910000000&quot;,<br>  &quot;Email&quot;: &quot;john.doe@example.com&quot;,<br>  &quot;COUNTRY&quot;: &quot;India&quot;<br>}<br>]<br>}</pre><p>Output:</p><pre>&lt;Persons&gt;<br>&lt;Person&gt;<br> &lt;FIRST_NAME&gt;smith1 &lt;/FIRST_NAME&gt;<br>  &lt;LAST_NAME&gt;Joe1&lt;/LAST_NAME&gt;<br>  &lt;TEL_NUMBER&gt;+910000000&lt;/TEL_NUMBER&gt;<br>  &lt;MOB_NUMBER&gt;+910000000&lt;/MOB_NUMBER&gt;<br>  &lt;Email&gt;john.doe@example.com&lt;/Email&gt;<br>  &lt;COUNTRY&gt;India&lt;/COUNTRY&gt;<br>&lt;/Person&gt;<br>&lt;Person&gt;<br> &lt;FIRST_NAME&gt;smith2 &lt;/FIRST_NAME&gt;<br>  &lt;LAST_NAME&gt;Joe2&lt;/LAST_NAME&gt;<br>  &lt;TEL_NUMBER&gt;+910000000&lt;/TEL_NUMBER&gt;<br>  &lt;MOB_NUMBER&gt;+910000000&lt;/MOB_NUMBER&gt;<br>  &lt;Email&gt;john.doe@example.com&lt;/Email&gt;<br>  &lt;COUNTRY&gt;India&lt;/COUNTRY&gt;<br>&lt;/Person&gt;<br>&lt;/Persons&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abff4a2f660d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCR Implementation Using Azure Integration Services (AIS)]]></title>
            <link>https://medium.com/@bhavanisgsits/ocr-implementation-using-azure-integration-services-ais-3422d6820175?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/3422d6820175</guid>
            <category><![CDATA[azure-integration]]></category>
            <category><![CDATA[logic-apps]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[ocr-software]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Mon, 02 Sep 2024 17:35:25 GMT</pubDate>
            <atom:updated>2024-09-02T17:35:25.592Z</atom:updated>
            <content:encoded><![CDATA[<p>Implementing Optical Character Recognition (OCR) using Azure Integration Services (AIS) involves leveraging various Azure services to automate the extraction of text from images or scanned documents, process the data, and integrate it with other systems. Below is a detailed approach to implementing OCR using AIS.</p><p><strong>1. Overview of the Architecture</strong></p><p><strong>Key Components:</strong></p><ul><li><strong>Azure Cognitive Services — Computer Vision API:</strong> This service provides OCR capabilities to extract text from images or scanned documents.</li><li><strong>Azure Logic Apps:</strong> Used to orchestrate the entire OCR process, including triggering the OCR service, processing the extracted text, and integrating the results with downstream systems.</li><li><strong>Azure Blob Storage:</strong> Stores the input files (images or scanned documents) and the output files (processed text or structured data).</li><li><strong>Azure Functions:</strong> Handles any custom processing or transformation logic required for the extracted text.</li></ul><p><strong>2. Detailed Implementation Steps</strong></p><p><strong>Step 1: Storing Input Files in Azure Blob Storage</strong></p><ul><li><strong>File Upload:</strong> Users or applications upload images or scanned documents to a specific container in Azure Blob Storage.</li><li><strong>Triggering Logic Apps:</strong> Logic Apps are configured to trigger when a new file is uploaded to the Blob Storage container.</li></ul><p><strong>Step 2: Triggering OCR with Azure Logic Apps</strong></p><ul><li><strong>Orchestration:</strong> A Logic App is designed to orchestrate the OCR process. Upon detecting a new file in Blob Storage, it calls the Azure Cognitive Services Computer Vision API to perform OCR on the file.</li><li><strong>API Call:</strong> The Logic App sends the image or document to the Computer Vision API endpoint, specifying the OCR language and other parameters.</li><li><strong>Processing OCR Response:</strong> The OCR results, typically in JSON format, are returned to the Logic App for further processing.</li></ul><p><strong>Step 3: Processing the Extracted Text with Azure Functions</strong></p><ul><li><strong>Custom Processing:</strong> If additional processing is required (e.g., data validation, formatting, or extraction of specific fields), an Azure Function can be invoked by the Logic App. The Function processes the OCR output, transforming it into the desired format.</li><li><strong>Storing Processed Data:</strong> The processed text can be stored in a database (Azure SQL Database or Cosmos DB) for later use, such as analytics, reporting, or further integration.</li></ul><p><strong>Step 4: Integrating with Other Systems Using Azure Service Bus or Event Grid</strong></p><ul><li><strong>Messaging Integration:</strong> The processed data can be sent to other systems via Azure Service Bus or Event Grid. This enables event-driven workflows, where the completion of the OCR process triggers actions in other systems (e.g., updating a CRM system, sending notifications, etc.).</li><li><strong>API Integration:</strong> If other applications or services need access to the OCR results, Azure API Management (APIM) can be used to expose APIs that securely deliver this data.</li></ul><p><strong>Step 5: Storing and Accessing Results</strong></p><ul><li><strong>Data Storage:</strong> The final text data can be stored in a database for long-term storage, search, or analysis.</li><li><strong>User Access:</strong> End-users or applications can access the processed data through a web interface or API, depending on the requirements.</li></ul><p><strong>3. Error Handling and Exception Management</strong></p><p><strong>Error Handling in Logic Apps:</strong></p><ul><li><strong>Retry Policies:</strong> Logic Apps support retry policies, which can automatically retry failed operations such as API calls to the Computer Vision service.</li><li><strong>Error Scopes:</strong> Errors can be captured and handled within specific scopes in Logic Apps. For example, if the OCR API fails, an alert can be sent, or a fallback action can be executed.</li></ul><p><strong>Custom Error Handling in Azure Functions:</strong></p><ul><li><strong>Try-Catch Blocks:</strong> Azure Functions use standard try-catch blocks to handle exceptions during the processing of OCR data.</li><li><strong>Logging and Alerts:</strong> Errors and exceptions are logged to Azure Monitor or Application Insights, with alerts configured to notify support teams of critical issues.</li></ul><p><strong>4. Security and Compliance Considerations</strong></p><p><strong>Data Encryption:</strong></p><ul><li><strong>Encryption at Rest and in Transit:</strong> All data, including images, documents, and OCR results, is encrypted both at rest (in Azure Blob Storage) and in transit (using HTTPS).</li><li><strong>Access Control:</strong> Azure Role-Based Access Control (RBAC) is used to ensure that only authorized users and services can access the stored files and processed data.</li></ul><p><strong>Compliance:</strong></p><ul><li><strong>Compliance with Standards:</strong> The solution can be configured to comply with industry-specific regulations such as GDPR, HIPAA, or PCI DSS, depending on the nature of the data being processed.</li><li><strong>Auditing and Monitoring:</strong> All access and actions are logged, enabling comprehensive auditing and monitoring of the OCR process.</li></ul><p><strong>5. Performance Optimization</strong></p><p><strong>Scaling Azure Cognitive Services:</strong></p><ul><li><strong>Auto-Scaling:</strong> Azure Cognitive Services can automatically scale to handle large volumes of requests, ensuring that OCR processing remains responsive even under heavy load.</li><li><strong>Batch Processing:</strong> For large numbers of documents, batch processing can be implemented to optimize performance and reduce API costs.</li></ul><p><strong>Optimizing Logic Apps and Functions:</strong></p><ul><li><strong>Parallel Processing:</strong> Logic Apps can be configured to process multiple files in parallel, reducing overall processing time.</li><li><strong>Function Optimization:</strong> Azure Functions are optimized for quick execution, ensuring that any custom processing does not become a bottleneck.</li></ul><p><strong>6. Scalability and Future-Proofing</strong></p><p><strong>Scalability:</strong></p><ul><li><strong>Azure’s Elastic Resources:</strong> The entire solution is built on Azure’s scalable infrastructure, allowing it to handle growing volumes of data and OCR requests without significant changes to the architecture.</li><li><strong>Event-Driven Architecture:</strong> Using Azure Service Bus or Event Grid ensures that the solution can easily integrate with additional services or systems as needed.</li></ul><p><strong>Future-Proofing:</strong></p><ul><li><strong>Modular Design:</strong> The use of Logic Apps, Azure Functions, and APIM allows for easy modification and extension of the solution as new requirements or technologies emerge.</li><li><strong>Integration with New Services:</strong> The solution can be easily extended to integrate with other Azure services or third-party tools, ensuring that it remains relevant and capable as technology evolves.</li></ul><p><strong>7. Lessons Learned and Best Practices</strong></p><p><strong>Key Insights:</strong></p><ul><li><strong>Preprocessing Images:</strong> It is often beneficial to preprocess images (e.g., resizing, format conversion) before sending them to the OCR service to improve accuracy and reduce processing time.</li><li><strong>Handling Large Files:</strong> For large documents, splitting them into smaller sections before OCR can improve performance and manageability.</li><li><strong>Cost Management:</strong> Monitoring the usage of Cognitive Services and optimizing API calls can significantly reduce operational costs, especially in high-volume scenarios.</li></ul><p><strong>Best Practices:</strong></p><ul><li><strong>Monitor and Optimize:</strong> Regularly monitor the performance and cost of the OCR process and make adjustments to optimize both.</li><li><strong>Robust Error Handling:</strong> Implement comprehensive error handling and logging to quickly identify and resolve issues in the OCR process.</li><li><strong>Security First:</strong> Ensure that all data processing adheres to the highest security standards, particularly when dealing with sensitive information.</li></ul><p><strong>Conclusion</strong></p><p>Implementing OCR using Azure Integration Services offers a powerful, scalable, and secure solution for extracting and processing text from images and scanned documents. By leveraging Azure Cognitive Services, Logic Apps, and other Azure tools, this solution can be seamlessly integrated with existing systems, providing valuable insights and automation while ensuring compliance and performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3422d6820175" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IVR System by using Azure communication services and AI Services:]]></title>
            <link>https://medium.com/@bhavanisgsits/ivr-system-by-using-azure-communication-services-and-ai-service-fc85db1f5a6f?source=rss-98146982b071------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc85db1f5a6f</guid>
            <category><![CDATA[azure-ai-services]]></category>
            <category><![CDATA[ivr-solution]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-integration]]></category>
            <category><![CDATA[azure-functions]]></category>
            <dc:creator><![CDATA[Bhavani S]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 06:25:08 GMT</pubDate>
            <atom:updated>2025-03-27T05:46:52.994Z</atom:updated>
            <content:encoded><![CDATA[<p>Interactive Voice Response (IVR) is an automated phone system technology that allows incoming callers to access information via a voice response system of pre-recorded\Dynamic messages without having to speak to an agent.</p><p>Microsoft Azure Provides the set of services which can be used for building IVR system for any organization.</p><p>Design:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*fP5H1SZdBZEGg08uOgeC3Q.png" /></figure><p><strong>Services Used:</strong></p><p><strong><em>Azure Communication Services</em></strong></p><p><strong><em>Azure AI Services</em></strong></p><p><strong><em>Azure Integration Services (Logic App, Function App)</em></strong></p><p><strong>Steps:</strong></p><p>When any incident is created in the Ticketing tool, a Rest API (Which can be http triggered Azure Function App or Logic App) will be called by Ticketing tool with Assignee’s Name, Assignee’s Phone-Number and Incident Number.</p><p>Create an ACS and Enabled the managed identity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkdGaRFCSoKVot84JNpAfg.png" /></figure><p>Acquire the Phone Number with Voice calling and SMS enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*NYJL3wsyZIpg4t3OYgjZXQ.png" /></figure><p>Create a Multi Service Azure AI service and provide ‘Cognitive Service User’ access to above ACS by using managed identity.</p><p>Connect the AI service from ACS in the azure portal</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*f-COFJYPMC7ByAOg7qAwZg.png" /></figure><p>Develop a Azure Function with Azure communication Service SDK(NuGet package- Azure.Communication.CallAutomation).</p><p>Code-</p><blockquote>public static async Task&lt;IActionResult&gt; Run(</blockquote><blockquote>[HttpTrigger(AuthorizationLevel.Function, “get”, “post”, Route = null)] HttpRequest req,</blockquote><blockquote>ILogger log)</blockquote><blockquote>{</blockquote><blockquote>try</blockquote><blockquote>{</blockquote><blockquote>log.LogInformation(“C# HTTP trigger function processed a request.”);</blockquote><blockquote>string name = req.Query[“name”];</blockquote><blockquote>string phone = req.Query[“phone”];</blockquote><blockquote>string number = req.Query[“number”];</blockquote><blockquote>string requestBody = await new StreamReader(req.Body).ReadToEndAsync();</blockquote><blockquote>dynamic data = JsonConvert.DeserializeObject(requestBody);</blockquote><blockquote>name = name ?? data?.name;</blockquote><blockquote>phone = phone ?? data?.phone;</blockquote><blockquote>number = number ?? data?.number;</blockquote><blockquote>string targetPhoneNumber = phone;</blockquote><blockquote>string callerIdPhoneNumber = Environment.GetEnvironmentVariable(“callerIdPhoneNumber”);</blockquote><blockquote>string incidentDescription = “Hello “+ name +”, “+ “ The Case “+ number+ “ is assigned to you.Please login ServiceNow and start working”;</blockquote><blockquote>var ACSconnectionString = Environment.GetEnvironmentVariable(“ACSconnectionString”);</blockquote><blockquote>var callBackURI = Environment.GetEnvironmentVariable(“callBackURI”); // Find your Communication Services resource in the Azure portal</blockquote><blockquote>string textToPlay = incidentDescription;</blockquote><blockquote>// Provide VoiceName to select a specific voice.</blockquote><blockquote>var playSource = new TextSource(textToPlay, “en-US-ElizabethNeural”);</blockquote><blockquote>// Create a client for Call Automation</blockquote><blockquote>CallAutomationClient callAutomationClient = new CallAutomationClient(ACSconnectionString);</blockquote><blockquote>CallInvite callInvite = new CallInvite(</blockquote><blockquote>new PhoneNumberIdentifier(targetPhoneNumber),</blockquote><blockquote>new PhoneNumberIdentifier(callerIdPhoneNumber));</blockquote><blockquote>// E.164 formattedrecipient phone number</blockquote><blockquote>// create call with above invitation</blockquote><blockquote>//var createCallResult = callAutomationClient.CreateCall(callInvite, new Uri(callBackURI));</blockquote><blockquote>CreateCallOptions createCallOption = new(callInvite, new Uri(callBackURI));</blockquote><blockquote>createCallOption.CallIntelligenceOptions = new CallIntelligenceOptions</blockquote><blockquote>{</blockquote><blockquote>CognitiveServicesEndpoint = new Uri(“https://multi-service-account-cognitive-service.cognitiveservices.azure.com&quot;)</blockquote><blockquote>};</blockquote><blockquote>var createCallResult= await callAutomationClient.CreateCallAsync(createCallOption);</blockquote><blockquote>while (1 == 1)</blockquote><blockquote>{</blockquote><blockquote>if (callAutomationClient.GetCallConnection(createCallResult.Value.CallConnection.CallConnectionId).GetCallConnectionProperties().Value.CallConnectionState.ToString() == “connected”)</blockquote><blockquote>{</blockquote><blockquote>var playResponse = callAutomationClient.GetCallConnection(createCallResult.Value.CallConnection.CallConnectionId).GetCallMedia().PlayToAll(playSource);</blockquote><blockquote>Thread.Sleep(14000);</blockquote><blockquote>break;</blockquote><blockquote>}</blockquote><blockquote>log.LogInformation(callAutomationClient.GetCallConnection(createCallResult.Value.CallConnection.CallConnectionId).GetCallConnectionProperties().Value.CallConnectionState.ToString());</blockquote><blockquote>}</blockquote><blockquote>var hangUp = callAutomationClient.GetCallConnection(createCallResult.Value.CallConnection.CallConnectionId).HangUp(true);</blockquote><blockquote>return new OkObjectResult(createCallResult.Value);</blockquote><blockquote>}</blockquote><blockquote>catch (Exception ex)</blockquote><blockquote>{</blockquote><blockquote>return new OkObjectResult(ex.Message);</blockquote><blockquote>}</blockquote><blockquote>}</blockquote><p>Build and deploy the function in the Azure function App.</p><p>Now Setup the rules in Service now to call the function App when any incident is logged and assigned to someone.</p><p>Assignee would receive a call and would listen the voice message saying “Hello ABC, the Incident &lt;Number&gt; has been assigned to you, Please login to service now and start working on it”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc85db1f5a6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>