Skip to main content

 Global Medical Equipment Sales & Service Management Company MedTech Global manufactures and sells MRI machines, CT scanners, X-Ray equipment, and medical devices to hospitals worldwide. Departments: Sales Finance Service Logistics Legal Compliance Regional Managers Global VP Installation Team Support Team Objects Standard Account Opportunity Case Task Contract Asset User Quote Product Order Order Product Content Document Email Message Approval Custom Equipment_Request__c Installation__c Compliance_Check__c Finance_Approval__c Discount_Request__c Warranty__c Risk_Assessment__c Shipment__c Audit_Log__c Training_Request__c Service_Schedule__c Business Requirement Hospital submits an order for MRI Machine. Entire process must happen automatically. Step 1 Opportunity becomes Closed Won. Flow starts. Trigger After Save Decision 1 Order Amount IF Less than 100K Auto Approve IF 100K–500K Regional Manager Approval IF Above 500K Director Approval IF Above 1 Million VP Approval Decision 2 Discount % IF <10% No approval 10–20% Sales Manager 20–30% Finance Approval Above 30% CEO Approval Decision 3 Country IF USA Assign USA Team IF Canada Assign Canada Team IF Europe Assign EU Team IF Middle East Assign ME Team Else Global Team Decision 4 Customer Type Government ↓ Compliance Check Private Hospital ↓ Skip Compliance Research Institute ↓ Legal Review Decision 5 Equipment Type MRI ↓ Installation Team A CT Scan ↓ Installation Team B X-Ray ↓ Installation Team C Ultrasound ↓ Installation Team D Decision 6 Warranty Purchased? YES Create Warranty NO Skip Decision 7 AMC Purchased? YES Create Service Schedule NO Skip Decision 8 Training Required? YES Create Training Request Assign Trainer NO Skip Decision 9 Risk Score Low ↓ Proceed Medium ↓ Manager Review High ↓ Compliance Review Critical ↓ Legal Approval Decision 10 Inventory Available? YES Reserve Inventory NO Backorder Notify Procurement Get Records Customer Products Price Book Contract Previous Orders Open Cases Inventory Warranty Assets Service Team Loop Each Product MRI Monitor Battery UPS Printer Software License Training Kit For every product Create Order Product Asset Shipment Warranty Installation Task Collection Assignment Store All Tasks All Assets All Shipments Bulk Insert Create Records Order Order Products Shipment Tasks Installation Warranty Compliance Audit Training Finance Approval Update Records Opportunity Account Contract Assets Case Order Shipment Scheduled Path After 1 Hour Notify Warehouse After 24 Hours Check Shipment 48 Hours Reminder 72 Hours Escalation 7 Days Customer Follow-up 30 Days Customer Satisfaction Survey 365 Days AMC Renewal Reminder Email Notifications Sales Rep Finance Warehouse Customer Regional Manager VP Compliance Training Team Support Installation Team Custom Notification Salesforce Bell Notification Approval Required Shipment Delayed Installation Assigned Training Scheduled Payment Pending Subflows Discount Approval Compliance Check Warranty Creation Training Shipment Audit Log Customer Notification Risk Assessment Validation Rules Cannot Close Opportunity If Primary Contact Missing Cannot Submit If Hospital License Missing Cannot Approve If Discount >40% Without CEO Cannot Ship If Payment Pending Cannot Install If Compliance Pending Duplicate Rules Prevent Duplicate Hospital Duplicate Equipment Request Duplicate Warranty Duplicate Installation Record Locking During Approval Opportunity Order Contract Become Read Only Platform Events Payment Received Shipment Completed Equipment Installed Warranty Activated Invoice Generated Subscribers ERP SAP Finance Warehouse Fault Paths If Order Creation Failed ↓ Create Audit Log ↓ Email Admin ↓ Retry Queue Security OWD Opportunity Private Role Hierarchy Sales Rep ↓ Sales Manager ↓ Regional Director ↓ VP Sharing Rules Finance Can Read Orders Warehouse Can Edit Shipment Support Read Assets Legal Read Compliance Permission Sets Finance Approval Shipment Manager Warranty Team Compliance Team Field-Level Security Hide Discount Cost Price Margin Fraud Score Salary Restriction Rules Sales Rep Only Region Records Finance Only Approved Orders Warehouse Only Pending Shipments Formula Fields Profit % Margin Warranty Remaining Delivery SLA Expected Installation Date Risk Category Approval Process Opportunity ↓ Sales Manager ↓ Finance ↓ Compliance ↓ Director ↓ VP ↓ Approved Reports Orders Pending Approval Pending Shipment Delay Installation Due Warranty Expiry Training Pending High Discount High Risk Open Compliance Dashboard Daily Orders Monthly Revenue Average Approval Time Pending Shipment Top Sales Rep Delayed Installations Risk Heat Map Integration SAP ERP Payment Gateway DocuSign ServiceNow Marketing Cloud Slack Microsoft Teams MuleSoft  

 

#Flow  #Flows  #Salesforce Admin

1 resposta
  1. 5 de ago., 16:33

    Hey Rohit, 

     

    This is a massive scenario — basically a full enterprise Service/Sales Cloud implementation compressed into one post, not something buildable as a single Flow. If you're using this for practice/interview prep, here's how I'd break it into buildable phases rather than trying to tackle it as one build: 

     

    1. Core Order Flow (the actual automation) 

    One Record-Triggered Flow on Opportunity (After Save, Closed Won) handling Decisions 1–10 in sequence. Given the branching complexity (10 decision points), structure this as a master Flow calling Subflows for each major decision block (Discount Approval, Compliance Check, Risk Assessment, etc.) — a single flat Flow with this many branches becomes unmaintainable fast. 

     

    2. Approvals — don't build all of this in Flow 

    Decisions 1 and 2 (amount-based and discount-based approval tiers) map much better to native Approval Processes with multi-step approval chains than to Flow-managed approval logic. Use Flow only to Submit for Approval and react to the outcome. 

     

    3. The product loop (bulk-safe) 

    Loop through products → build collections for Order Product, Asset, Shipment, Warranty, Installation Task → bulk-insert each collection once, outside the loop. This is the part most likely to hit governor limits if built carelessly (DML inside the loop instead of collections). 

     

    4. Scheduled Paths 

    Each of your time-based followups (1hr, 24hr, 48hr, 72hr, 7-day, 30-day, 365-day) is a separate Scheduled Path off the same Flow or a dedicated time-based Flow — don't try to chain these off one one Scheduled Path. 

     

    5. Everything else is configuration, not Flow 

    Sharing rules, OWD, Role Hierarchy, Permission Sets, Field-Level Security, Duplicate Rules, Validation Rules — all pure declarative setup, unrelated to the Flow itself. Build these first since the Flow's record access depends on them being correct. 

     

    6. Platform Events / SAP integration 

    These are outbound publish points from your Create Records steps (Payment Received, Shipment Completed, etc.) — straightforward Platform Event Publish actions in Flow, but the actual SAP/ERP consumption side is outside Salesforce's scope. 

     

    Given the size, I'd start with just Decisions 1–3 (approval tier, discount tier, region assignment) as a working end-to-end Flow first, then layer in the rest incrementally. Trying to build all 10 decisions + loop + scheduled paths + subflows in one pass is where this kind of build usually falls apart. 

     

    What are you actually trying to do with this — build it out as practice, or is this a real client requirement you're scoping?

0/9000