TECHNICAL BLOG

Azure Logic Apps Overview

Azure Logic Apps is a cloud-based service that enables you to automate workflows and integrate apps, data, and services across different systems. It provides a visual interface to design workflows, known as "logic apps," which can be triggered by various events and can integrate with a wide range of systems using pre-built connectors.

Key Concepts of Azure Logic Apps

Triggers: A trigger starts a logic app. It could be a time-based trigger (e.g., every hour), an event (e.g., when a file is uploaded), or an action in another system (e.g., receiving an email).
Actions: Actions are the steps that the logic app performs after it is triggered. These can include calling APIs, manipulating data, sending emails, etc.
Connectors: Connectors allow logic apps to interact with various services, such as Office 365, Salesforce, Azure services, databases, etc.

Example Scenario: Automating Invoice Processing

Let’s say you want to automate the process of receiving invoices via email, saving them to a SharePoint document library, and then notifying the accounting team.

Steps to Implement This Workflow Using Azure Logic Apps:

  1. Create the Logic App In the Azure portal, create a new Logic App by navigating to Create a resource > Integration > Logic App. Follow below steps

    • Step 1: Add a Trigger Trigger: Choose the trigger to start your logic app. In this case, you might choose When a new email arrives (V2) from the Office 365 Outlook connector. Condition: Set conditions to filter emails. For instance, you might only want to trigger the workflow when the subject contains "Invoice."

    • Step 2: Extract Invoice Attachment Action: Use the Get attachments action to retrieve any files attached to the email.

    • Step 3: Save the Attachment to SharePoint Action: Add a Create file action from the SharePoint connector. Configure it to save the attachment to a specific document library in SharePoint. Set the file name and content based on the email attachment.

    • Step 4: Notify the Accounting Team Action: Use the Send an email (V2) action from the Office 365 Outlook connector to send a notification email to the accounting team. The email can include details like the sender’s email address, the subject of the email, and a link to the saved file in SharePoint.

  2. Test and Monitor the Logic App Test: Send an email with an invoice attachment to see if the logic app correctly processes it. Monitor: Azure Logic Apps provides built-in monitoring tools. You can see the run history and inspect any errors that occurred during the execution.

  3. Enhance the Workflow Error Handling: Add error handling actions like Scope and Terminate to manage what happens if a step fails (e.g., retry, log the error).
    Data Transformation: Use data operations like Compose or Parse JSON to transform or extract specific information from the email content or attachment.
    Approval Workflow: You can add an approval step where the accounting team reviews the invoice before it is saved to SharePoint.

    Final Workflow Overview

    Trigger: The workflow starts when an email with the subject "Invoice" is received.
    Get Attachments: The attachment(s) from the email are retrieved.
    Save to SharePoint: The attachment is saved to a designated SharePoint document library.
    Notify Team: An email notification is sent to the accounting team, including details of the invoice.

    Benefits of Using Azure Logic Apps:

    No-Code/Low-Code Solution: Allows non-developers to create complex workflows using a visual designer.
    Scalability: Automatically scales with demand, processing multiple workflows concurrently.
    Integration: Easily integrates with hundreds of services and on-premises systems.
    Cost-Effective: Pay only for what you use, with a straightforward pricing model based on the number of actions executed.

Conclusion

Azure Logic Apps is a powerful tool for automating business processes and integrating systems. By creating a simple workflow, you can automate tasks such as invoice processing, saving time and reducing the potential for human error. With its extensive library of connectors and easy-to-use interface, Azure Logic Apps is suitable for both technical and non-technical users.

The perfect choice for Entrepreneur, business advisor and corporates.