Translate

New Live Courses

πŸš€ *Gen AI Engineer Telugu (Production Focused)*
πŸ—“️ *Date:* 30th Sept 2026, 07:00AM IST
πŸ“ *Register Now!:*
https://www.vlrt.in/gr
πŸ‘₯ *Join WA Community:*
https://www.vlrt.in/gw
πŸ’‘*Course Content:*
https://www.vlrt.in/ai
▶️ *Demo Videos:*
https://www.vlrt.in/gv

πŸš€ *Service now Admin/ Development (ITSM)FREE Demo in Telugu*
πŸ—“️ *Date:* 30th Sept 2026, 08:00AM IST
πŸ“ *Register Now!:*
https://www.vlrt.in/7r
πŸ‘₯ *Join WA Community:*
https://www.vlrt.in/7w
πŸ’‘*Course Content:*
https://www.vlrt.in/7c
▶️ *Demo Videos:*
https://www.vlrt.in/7v

πŸš€ *Vulnerability Management Training Demo*
πŸ—“️ *Date:* 30th Sept 2026, 09:00 AM IST
πŸ“*Register Now!:*
https://www.vlrt.in/vr
πŸ‘₯ *Join Community:*
https://www.vlrt.in/cw
πŸ’‘ *Course Content:*
https://www.vlrt.in/vc
▶️ *Demo Videos:*
https://www.vlrt.in/Vm

Thursday, 10 April 2025

 real-world example of an Automated Cloud Flow with conditions in Power Automate,

 πŸš€ Real-World Example: Automated Order Approval System

Here's a real-world example of an Automated Cloud Flow with conditions in Power Automate, designed to streamline a common business process:

πŸ“¦ Scenario: Automated Order Approval System

  • Problem: A company receives orders via a SharePoint list. Orders over $1,000 require manager approval, while smaller orders can be auto-approved and processed immediately.

πŸͺœ Step-by-Step Flow

1️⃣ Trigger

* "When an item is created or modified" (SharePoint connector).
* ⚙️ **Configure:**
    * πŸ“ Site Address: Your SharePoint site.
    * πŸ“ƒ List Name: Orders.

2️⃣ Initialize Variable (Optional)

* Store the order amount for later use:
    * 🏷️ Name: OrderAmount
    * πŸ”’ Type: Integer
    * πŸ’° Value: `item()?['OrderAmount']`

3️⃣ Condition

* πŸ€” Check if the order exceeds $1,000:
    ```
    @greater(item()?['OrderAmount'], 1000)
    ```
    * ⬅️ Left Value: OrderAmount (dynamic content).
    * ➡️ Right Value: 1000.

* **Branch 1: "Yes" (Requires Approval)**

4️⃣ Request Approval

* 🎬 Action: "Start and wait for an approval" (Approvals connector).
* ⚙️ Configure:
    * ✅ Approval Type: Approve/Reject.
    * 🏷️ Title: Approve order #@{item()?['ID']}.
    * πŸ‘€ Assigned To: Manager’s email (e.g., `manager@company.com`).
    * πŸ“ Details:
        ```
        Customer: @{item()?['CustomerName']}
        Amount: $@{item()?['OrderAmount']}
        ```

5️⃣ Update Order Status Based on Response

* πŸ€” Condition: If approval is "Approve":
    ```
    @equals(outputs('Start_and_wait_for_an_approval')?['Outcome'], 'Approve')
    ```
    * ✅ Yes:
        * Update SharePoint item: Set Status to Approved.
        * πŸ“§ Send email: Notify the sales team.
    * ❌ No:
        * Update SharePoint item: Set Status to Rejected.
        * πŸ“§ Send email: Inform the customer of rejection.

* **Branch 2: "No" (Auto-Approved)**

6️⃣ Auto-Process Order

* Update SharePoint item: Set Status to Approved.
* πŸ“§ Send email confirmation to the customer:
    ```
    Subject: Your order is confirmed!
    Body: We’re processing your order of $@{item()?['OrderAmount']}.
    ```

πŸ“ˆ Real-Time Impact

  • πŸ’° High-Value Orders:
    • Manager receives approval requests instantly via email or Teams.
    • Orders are processed only after approval.
  • πŸ’Έ Low-Value Orders:
    • Auto-approved and confirmed to the customer within seconds.

🧩 Key Components Used

  • πŸ”” Triggers: SharePoint item creation/modification.
  • πŸ€” Conditions: greater() to check order amounts, equals() to validate approval responses.
  • 🎬 Actions: Approval requests, SharePoint updates, email notifications.
  • πŸ“¦ Dynamic Content: item()?['OrderAmount'], item()?['CustomerName'].

Benefits

  • ⏱️ Reduced Delays: Low-value orders skip manual approval.
  • Compliance: Ensures high-value orders are reviewed.
  • πŸ“’ Transparency: Customers receive instant updates.

Advanced Use Case

  • Add a second condition to flag orders from VIP customers (e.g., tagged in SharePoint) for expedited shipping:
    @and(less(item()?['OrderAmount'], 1000), equals(item()?['CustomerType'], 'VIP'))
    
    • ✅ Yes: Trigger a "Priority Shipping" email.

This flow demonstrates how conditions add intelligent decision-making to automation. Let me know if you’d like to explore other scenarios (e.g., inventory alerts, ticket routing)! πŸš€

No comments:

Post a Comment

Note: only a member of this blog may post a comment.