Category Archives: Logic App
Real-Life Use Case of CRUD Operations with Postman and Azure Logic Apps
Having a robust Customer Relationship Management (CRM) system is crucial for managing customer data and interactions effectively. One way to enhance your CRM capabilities is through seamless integration with Azure Logic Apps, allowing for efficient CRUD (Create, Read, Update, Delete) operations via OData endpoints. In this blog post, we’ll dive into a real-life business use case that demonstrates how to perform CRUD operations on a CRM system using Postman and Azure Logic Apps. What Are CRUD Operations? CRUD operations form the backbone of any data-driven application. They enable you to: The Setup: Using Postman for API Requests Postman is an incredibly useful tool for testing APIs, and in our case, it will help us interact with our CRM’s OData endpoints. Before we begin, ensure that you have the necessary API access and permissions set up. Creating a New Record in CRM Step 1: Prepare Your Request To create a new record, you’ll need to set up a POST request in Postman. Here’s how to do it: Step 2: Set the Request Body In the body of your POST request, include the necessary details for the new record. For example, if you’re creating a customer record, it might look something like this: Step 3: Send the Request Hit the Send button. You should receive a response containing the payload of the newly created entry (e.g., CustomersV3). Step 4: Verify Creation in CRM Next, navigate to your CRM dashboard to verify that the new customer entry has been successfully created. Updating an Existing Record Step 1: Prepare Your Update Request To update an existing record, you’ll be sending a PATCH or PUT request. Here’s how to set it up in Postman: Step 2: Set the Request Body Include the changes you wish to make in the request body. For example, if you want to update John Doe’s phone number: Step 3: Send the Request Once you send the request, you should see a response indicating the payload of the updated account. Step 4: Verify Update in CRM Check your CRM to confirm that the changes were applied correctly. Future Topics: Logic App Creation In our next blog, we’ll dive deeper into the creation of Azure Logic Apps and how they can automate these CRUD operations further, enhancing your CRM’s functionality. We’ll cover: – Setting up triggers and actions within Azure Logic Apps. – Automating data flow between systems. – Best practices for managing CRM data efficiently. Conclusion By leveraging Postman for CRUD operations and integrating with Azure Logic Apps, businesses can significantly enhance their CRM capabilities, streamline operations, and ensure that their customer data remains accurate and accessible. Stay tuned for our upcoming blog, where we’ll explore how to create Azure Logic Apps to automate these processes, making your CRM experience even more efficient. We hope you found this article useful, and if you would like to discuss anything, you can schedule a call with us by clicking the button below.
Share Story :
Sending and Receiving Messages from Azure Service Bus Using Logic Apps
Azure Service Bus, paired with Logic Apps, offers a powerful combination for sending, receiving, and managing messages between different applications and services. In this blog, we’ll walk through the process of sending and receiving messages using Azure Service Bus and Logic Apps. Steps to send and receive messages from service bus using logic app Step 1: Create an Azure Service Bus Namespace Navigate to the Azure Portal: – Go to portal.azure.com and log in with your credentials. Create a Service Bus Namespace: – In the search bar at the top, type “Service Bus” and select Service Bus from the results. – Click + Create to start the creation process. – Fill in the required details: Click Review + Create, and then Create to deploy the namespace. Step 2: Create a Queue or Topic in the Service Bus Namespace Access the Service Bus Namespace: – After the namespace is deployed, navigate to it by clicking on the resource in the portal. Create a Queue or Topic depending on your use case I am going to use: – Creating a Queue: Step 3: Create a Logic App to Send Messages to the Service Bus Navigate to Logic Apps: – In the Azure portal, use the search bar to find and select Logic Apps. – Click + Create to start a new Logic App. Configure Your Logic App: – In the Basics tab, provide the following details: – Click Review + Create, and then Create. Design the Logic App: – Once the Logic App is created, open the Logic Apps Designer and a trigger “When a HTTP request is received” along with POST request. – Add a compose action and pass the input parameters. – Go to Service bus –> Shared access policies –> Copy the Connection String Endpoint url – Add action Service Send Message and paste the copied end point in Connection String. – Pass the Output of compose in content. – Add a response action and the logic app workflow. – Now Copy the Url from trigger and paste it in postman hit the url. – As soon as you hit the url you will get customer Id as response in postman body. – Now Go to azure portal and check the run history I will see the Date and Status has been added for that particular customer id. – Now, Let’s verify this particular message whether it has been sent at the logic level or not. – Go to queue in my case Queue name Is “receivingqueue” –> Go to Service bus Explorer –> Click on Peek form Start. – Now in order see the content/ Message select the sequence number Step 4: Create a Logic App to Receive Messages from the Service Bus – Create a New Logic App: Repeat the steps to create a new Logic App. – Go to Logic app designer. – Add the Trigger “When a message is received in a queue”. – Add a compose action – Add a Terminate action on Succeeded. – Now to verify you check the run history of logic app you can we are getting the content in base64 Format – You can decode it and check it’s the same data that we were sending. Conclusion We’ve successfully set up a messaging system with Logic Apps and Azure Service Bus by following these steps. This configuration makes it possible to automate workflows, integrate apps seamlessly, and create reliable cloud solutions. Whether you’re working with batch processing or real-time data, Azure’s tools give you the strength and flexibility you need to scale your business effectively.
Share Story :
JSON to JSON Transformation using Azure Logic Apps and Liquid
Introduction In this blog post, I’ll walk you through the process of transforming JSON to JSON using Azure Logic Apps and the Liquid Template Language. This step-by-step guide will demonstrate how you can use Azure Integration Services to achieve your transformation goals. What is Liquid Template Language? The Liquid Template Language (commonly referred to as “Liquid”) is a flexible, open-source template language developed by Shopify. It is widely used to render dynamic content in platforms such as Shopify themes, Jekyll websites, and web applications. Liquid uses placeholders, loops, and conditional statements to pull dynamic data into a web template, making it an effective tool for JSON transformation. Prerequisites To complete this tutorial, you’ll need: Sample Input JSON We will use the following sample JSON file for this tutorial: { “FirstName”: “Deepak”, “LastName”: “Ch”, “Add1”: “T square, Saki Vihar Road, Andheri East”, “Add2”: “Mumbai”, “Landmark”: “Near Car Showroom”, “PhoneNo1”: 9812727261, “PhoneNo2”: 2121233322 } Desired Output JSON The client’s requirement is to transform the input JSON into the following format: { “Full Name”: “Deepak Ch”, “Address”: “T square, Saki Vihar Road, Andheri East, Mumbai, Near Car Showroom”, “Phone”: “9812727261, 2121233322” } Step-by-Step Guide – Step 1: Create a Free Azure Integration Account Step 2: Add the Liquid Template Map Step 3: Create a Logic App Step 4: Transform JSON to JSON using Liquid Here’s the Liquid template used for this transformation: { “Full Name”: “{{content.FirstName}} {{content.LastName}}”, “Address”: “{{content.Add1}}, {{content.Add2}}, {{content.Landmark}}”, “Phone”: “{{content.PhoneNo1}}, {{content.PhoneNo2}}” } Step 5: Test with Postman Final Output The output JSON will be: { “Full Name”: “Deepak Ch”, “Address”: “T square, Saki Vihar Road, Andheri East, Mumbai, Near Car Showroom”, “Phone”: “9812727261, 2121233322” } We hope you found this article useful, and if you would like to discuss anything, you can reach out to us at transform@cloudfronts.com
Share Story :
Read data from Blob using Logic App
In this blog post, we are going to create an Azure Logic App that reads blob content from Azure Storage and responds with specific data. We walked through the entire process, from setting up the Logic App in the Azure Portal to configuring actions and testing the workflow. This Logic App provides a seamless way to automate the retrieval and processing of data stored in Azure Blob Storage, showcasing the flexibility and power of Azure Logic Apps in building serverless workflows. Use Cases Data Processing Pipeline – Scenario: A company collects data from various sources and stores it in Azure Blob Storage for processing and insights. – Solution: Use a Logic App to trigger new data uploads, process the data, and send it to downstream applications. – Benefits: Automates data processing, reduces manual effort, and ensures timely data availability. Configuration Management – Scenario: An organization needs to fetch and apply configuration files from Azure Blob Storage dynamically. – Solution: Use a Logic App to handle HTTP requests for configuration data and respond with the necessary settings. – Benefits: Centralizes configuration management, ensuring consistency and reducing errors. Customer Support Automation – Scenario: A support system needs to fetch specific information from stored documents to respond to customer queries. – Solution: Use a Logic App to trigger API queries, retrieve relevant documents from Blob Storage, and send responses. – Benefits: Automates common customer query responses, improving support efficiency. Prerequisites Note: – To learn more about how to obtain a free Azure account, click on Azure free account to create Free Trial Account. – To learn how to create Azure Blob Storage Account & Container can refer blog: How to create: Azure Blob Storage, Container and Blob – CloudFronts Steps to Create a Logic App in Azure Step 1: Create a Logic App Step 2: Fill in the necessary details: Note: – Consumption Plan: Ideal for scenarios with unpredictable or low to moderate workloads, where you only pay for what you use. – Standard Plan: Best for high-usage, mission-critical applications that require consistent performance, dedicated resources, and enhanced development capabilities. Choosing between the Consumption and Standard plans depends on your specific requirements regarding cost, performance, scaling, and development preferences. Steps to Upload File on blob Create a Logic App to Read Data from Blob: Step-by-Step Guide Step 1: Set Up Logic App Designer Step 2: Add Blob Storage Action Step 3: Configure Blob Storage Action Step 4: Add Response Action & Configure Step 5: Save and Test the Logic App Step 6: Test your Logic App Conclusion With the help of Azure Logic Apps, you can easily build automated processes that connect to a wide range of services and applications. By following this guide, you have learned how to build a Logic App that reads data from Azure Blob Storage and responds with specific information. This foundational knowledge can be expanded to create more complex workflows, offering endless possibilities for automation and integration in your business processes. We hope you found this article useful, and if you would like to discuss anything, you can reach out to us at transform@cloudfronts.com
Share Story :
Integrating Azure Logic Apps with Common Data Service
Integrating Azure Logic Apps with the Common Data Service (CDS) opens up a world of possibilities for automating business processes and enhancing productivity within your organization. This blog will guide you through the steps to set up this integration, explaining the benefits and practical applications along the way. Azure Logic Apps is a powerful cloud-based service that allows you to automate workflows and integrate apps, data, and services across organizations. The Common Data Service, now known as Dataverse, provides a secure and scalable data storage solution that supports integration with various Microsoft and third-party applications. By integrating these two services, you can streamline data flow and automate complex workflows with ease. Prerequisites Before you begin, ensure you have the following: – An active Azure subscription. – Access to the Common Data Service (Dataverse) environment. – Necessary permissions to create and manage Logic Apps and CDS. Log in to the Azure Portal: Go to Azure Portal. Create a New Logic App: – Search for “Logic Apps” in the search bar. – Click on “Add” to create a new Logic App. – Fill in the required details (name, resource group) and click “Create”. Add a CDS Connector: – Once the Logic App is created, open the Workflow and Add one. – Click on “When a row is added” under Common Data Service triggers. – Sign in to your CDS environment and grant the necessary permissions. Configure the Trigger: – Select the relevant entity – Accounts and specify the trigger conditions – When a row is added. – Accordingly, when a record is added then create a Contact Record. – Save the Logic App Testing Out: Scenario – Create a new account in your Dynamics 365 / Power App. After a few moments, refresh and we see the contact has been created and assigned to the new Account. – So, we know our Logic App has run. Now let’s look at it in the Azure portal. Under Metrics, we see the Logic App has run. Why Integrate Azure Logic Apps with Common Data Service? We hope you found this article useful, and if you would like to discuss anything, you can reach out to us at transform@cloudfronts.com
Share Story :
AS2 using Logic App
High-level steps to start building B2B logic app workflows: Creating a Key Vault for Certificate and Private Key Create an Azure Key vault. In the next step, Select Vault access policy and select the Users. Select Review + Create. Add the access policy and assign it to Azure Logic App. Create Certificate Click the Certificate and Download Create a Key and attach the .pfx format file. Creating two Integration Account for adding Partners, Agreements and Certificates Create 2 integration accounts, one for sender and one for receiver. Add the Sender and Receiver Partners in both the integration accounts. Add a public certificate in sender integration account and a private certificate in receiver integration account. Now we need to add the agreement in both sender and receiver integration account. Sender Agreement Send Settings Receiver Agreement Receive Settings Creating two Logic Apps, one for Sending (Encoded Message) and one for Receiving (Decoded Message) Create two logic apps and add the integration account in respective logic apps. Logic App for Sender (Encoding Message) Logic App for Receiver (Decoding Message)
Share Story :
How to import an already existing Logic App Template in Azure Logic App
If you earlier have exported a Logic app template for further use and deleted that logic app, then below are the steps to import an already existing Logic app template as a Logic app. Go to https://portal.azure.com and then to the Logic app. Open any Logic app. For example, I took the below logic app. Go to Export Template. Click on Deploy Click on Edit Template Click on Load File. Select the template you want to import. Change the name to whatever you want. Here I will keep it as it is and Copy the name for further use. Copy the Name and click on Save. Check this page if it’s the same name and resource group as desired. Click on Review and Create. And then again, click on Create to create the Logic app. Now the Logic app template is imported and ready to use. I hope this was helpful.
Share Story :
How to call logic app in Azure function app
In this blog, we will see how we can trigger the logic app using the azure function app. Let’s start with creating a logic app (HTTP triggered) that sends an email when the logic app URL is hit in the function app. Step 1: Create a logic app resource and start by adding an HTTP GET request trigger. Url will auto-generate after saving the logic app. Step 2: Add send email block after that to receive an email Step 3: now create a function app in visual studio by creating a new project. Step 4: Add project name and now select type of function app, select the create option Step 5: Add the below code to the auto-generated code template in the visual studio Step 6: Run the function locally. then you will get URL in the command prompt copy that and paste it into your browser. Step 7: After entering the URL you should receive an email as mentioned in the logic app. In this way, the logic app triggered successfully using the function app Hope this blog helps you. Thank you!!
Share Story :
Create new records in CRM from JSON data in Blob Storage
If you want to create new records from a json data, you can do it by using Logic App. First you need to make sure to upload json file in blob container Steps for Logic App: First select a HTTP Trigger block in a new logic app designer Next step is to select Get blob content (V2) and choose the storage account name and the blob file where you uploaded the json file. Note: If you don’t have a connection to Blob Storage account already you need to create one by clicking on change connection and the Add New. You need to fill the details properly to create a correct connection. Access Key of the storage account can be found in Storage account in access keys section Now select Parse Json block to extract all values. Click on use sample payload and paste your payload there to get a schema. Note: In Content if you directly put File content then you will get error after you run the logic. Error: You get this error so for the you need to convert the octet-stream file to json file by writing the following function json(body(‘Get_blob_content_(V2)’)) Now once your json is parsed you need to create record in CRM using this data by selecting Create a new record block in CRM. You need to first sign in with your CRM account and then choose the organization and entity. Later you need to map the fields. Note: If there are mulitple records in json then the logic app will automatically take the create new record block in for each block as a step. Now the records will be created in CRM.
Share Story :
How to create a table using Azure Logic Apps with proper formatting
In this blog, we will see how we can create a table using HTML language using the Azure logic app. If you see carefully, there is an action block present which is “Create HTML table” but it does not give formatting flexibility. so in this blog, I will explain how we can use compose block to create a table with HTML syntax Step 1: To start with the logic app I took the recurrence trigger. you can use any trigger as per your requirement (which is set to run once a day) Step 2: Compose block is an important block as we are writing HTML syntax to format our table. For the demo I used sample data otherwise you can enter dynamic fields as well. in the highlighted section. Step 3: So output of Compose block is sent as the body of the email as shown in the below screenshot. Output: Email Hope this blog helps you. Thank you !!