Hướng Dẫn Power Automate Triggers, Actions & Connectors: Xây Dựng Workflow Tự Động Hoá Cho Doanh Nghiệp
TL;DR: Power Automate hoạt động theo mô hình Trigger → Actions → Connectors. Trigger kích hoạt flow (event, schedule, manual). Actions thực hiện xử lý (CRUD, email, approval, logic). Connectors kết nối dịch vụ — Standard miễn phí với M365, Premium cần license riêng. 80% use cases doanh nghiệp VN chỉ cần Standard connectors. Admin quản lý governance qua Power Platform admin center + Microsoft 365 admin center.
Mô hình Trigger → Actions → Connectors trong Power Automate — nền tảng automation cho Microsoft 365.
Doanh nghiệp của bạn đang xử lý thủ công hàng trăm email, approval, và data entry mỗi ngày? Liên hệ PUPAM để triển khai Power Automate — tự động hoá 80% quy trình lặp lại với Standard connectors miễn phí.
Triggers: Kích Hoạt Flow
Trigger Types
| Type | Cách Hoạt Động | Ví Dụ |
|---|---|---|
| Automated | Event-based (tự trigger) | Email arrives, file uploaded |
| Scheduled | Time-based (lịch) | Daily 8 AM, weekly Monday |
| Instant | Manual (user click) | Button in Teams, mobile |
| When selected | Context menu | SharePoint file → Run flow |
Common Triggers
Email Triggers
- When a new email arrives (Outlook) — phổ biến nhất
- When email flagged (Outlook) — theo dõi email quan trọng
- When email with attachment arrives — xử lý file đính kèm tự động
File Triggers
- When file created (SharePoint/OneDrive) — trigger khi upload file mới
- When file modified (SharePoint/OneDrive) — theo dõi thay đổi
- When file properties changed — metadata update
Form & Teams Triggers
- When a response is submitted (Forms) — xử lý survey, đơn đăng ký
- When a new channel message is posted — monitor Teams channels
- When someone @mentions me — notification từ Teams
Planner Triggers
- When a task is assigned to me — task management automation
- When a task is completed — trigger follow-up actions
Schedule & Manual Triggers
- Recurrence — chạy mỗi X phút/giờ/ngày/tuần/tháng
- Sliding Window — xử lý items trong time windows
- Manually trigger a flow — button click trên web/mobile
- For a selected item/file (SharePoint) — context menu action
- For a selected message (Teams) — xử lý message cụ thể
Actions: Hành Động Thực Hiện
Action Categories
| Category | Actions | Ví Dụ |
|---|---|---|
| Data | CRUD operations | Create SharePoint item, update Excel row |
| Communication | Send messages | Email, Teams post, push notification |
| Approval | Approval workflows | Start approval, wait for response |
| Control | Logic flow | Condition, Switch, Apply to each, Do until |
| Variables | Data storage | Initialize, Set, Increment, Append |
| Data Operations | Transform | Compose, Parse JSON, Filter array, Select |
| Date/Time | Time functions | Get current time, Convert timezone, Add days |
Control Actions — Quan Trọng Nhất
Condition (If/Else)
- IF email importance = High → THEN send Teams notification → ELSE do nothing
- Dùng cho logic phân nhánh đơn giản
Switch (Multiple Conditions)
- SWITCH on Department: Case "Sales" → route to Sales, Case "HR" → route to HR, Default → route to General
- Thay thế nhiều Condition lồng nhau
Apply to Each (Loop)
- FOR EACH row in Excel table → send email to that person
- Settings: Parallelism = 20 (chạy concurrent, tăng tốc x20)
Do Until (While Loop)
- DO: check SharePoint item status → UNTIL: status = "Approved" OR count > 10
- Limit: max 60 iterations, 1 hour timeout
Scope (Try/Catch Error Handling)
- SCOPE "Try": main actions → SCOPE "Catch": error handling
- Configure run after: "has failed" — bắt lỗi và xử lý gracefully
Terminate
- Stop flow execution với status: Succeeded / Failed / Cancelled
- Kèm custom error message cho logging
Cần thiết kế workflow phức tạp với nhiều conditions và error handling? PUPAM hỗ trợ thiết kế và xây dựng Power Automate flows tối ưu cho doanh nghiệp.
Connectors: Kết Nối Dịch Vụ
Standard Connectors (Free với M365)
| Connector | Actions | Common Use |
|---|---|---|
| Outlook | Send, read, flag email | Email automation |
| SharePoint | CRUD items, files | Document management |
| OneDrive | File operations | Personal file automation |
| Teams | Post, chat, meetings | Team notifications |
| Excel Online | Read/write table data | Data processing |
| Approvals | Start/wait approval | Approval workflows |
| Forms | Read responses | Survey processing |
| Planner | Create/update tasks | Task management |
| Notifications | Push to mobile | Alerts |
| Office 365 Users | Get profile, manager | User info lookup |
| Office 365 Groups | Group operations | Team management |
Premium Connectors (Cần License)
| Connector | Actions | License |
|---|---|---|
| Dataverse | Full CRUD + business logic | Power Automate Premium |
| SQL Server | Database operations | Power Automate Premium |
| HTTP | REST API calls | Power Automate Premium |
| Custom Connector | Any API | Power Automate Premium |
| Azure | Azure services | Power Automate Premium |
| Salesforce | CRM data | Power Automate Premium |
| AI Builder | AI models | AI Builder credits |
Connector Limits Theo Plan
Standard Plan (M365 included)
- 6,000 API requests / 5 phút / connector
- 600 actions per flow run
- 250 runs per flow / 24 giờ (non-performance)
- 10,000–25,000 runs per flow / 24 giờ (performance)
- Max 50 concurrent flows
Premium Plan ($15/user/tháng)
- Higher API limits + Process mining
- Premium connectors + Attended RPA (Desktop flows)
Per-Flow Plan ($100/flow/tháng)
- Unlimited users cho 1 flow — high-throughput scenarios
- Background operations
First Flow: Email → Teams Notification
Hướng dẫn từng bước
- Truy cập make.powerautomate.com → + Create → Automated cloud flow
- Chọn trigger: "When a new email arrives (V3)"
- Importance: High
- Has attachment: Any
- Include attachments: Yes
- Thêm action: "Post message in a chat or channel (V2)"
- Post as: Flow bot
- Post in: Channel
- Team: "Sales Team" → Channel: "Notifications"
Message template:
📧 Email quan trọng từ @{triggerOutputs()?['body/from']}
Subject: @{triggerOutputs()?['body/subject']}
Preview: @{triggerOutputs()?['body/bodyPreview']}
- (Optional) Thêm action: "Create a task in Planner"
- Title:
Follow up: @{triggerOutputs()?['body/subject']} - Due date:
addDays(utcNow(), 2) - Assigned to: current user
- Title:
- Save → Test với real email → Verify Teams post
Expressions: Formulas Trong Flow
Common Expressions
| Category | Expression | Result |
|---|---|---|
| Date | utcNow() | Current UTC datetime |
| Date | convertTimeZone(utcNow(),'UTC','SE Asia Standard Time') | Vietnam time |
| Date | formatDateTime(utcNow(),'dd/MM/yyyy') | "15/03/2026" |
| Date | addDays(utcNow(), 7) | 7 days from now |
| String | concat('Hello ', 'World') | "Hello World" |
| String | toLower(triggerBody()?['Subject']) | lowercase |
| String | contains(subject, 'urgent') | true/false |
| Number | add(1, 2) | 3 |
| Number | div(total, count) | Division |
| Logic | if(equals(a, b), 'yes', 'no') | Conditional |
| Array | length(body('List_rows')?['value']) | Row count |
| Array | first(body('List_rows')?['value']) | First item |
DLP Policies: Data Loss Prevention (Admin)
Tổng quan DLP
Truy cập Power Platform admin center → Policies → Data policies để kiểm soát connectors nào được dùng cùng nhau, ngăn chặn rò rỉ dữ liệu.
3 nhóm Connectors trong DLP
| Nhóm | Connectors | Quy tắc |
|---|---|---|
| Business | SharePoint, Outlook, Teams, OneDrive | Chỉ kết nối với Business |
| Non-Business | Twitter, Facebook, personal Gmail | Chỉ kết nối với Non-Business |
| Blocked | Connectors bị cấm hoàn toàn | Users không thể sử dụng |
Thiết lập DLP Policy
- + New Policy → đặt tên: "Company DLP Policy"
- Scope: All environments (hoặc specific environment)
- Di chuyển connectors vào nhóm phù hợp (Business / Non-Business / Blocked)
- Block: social media, personal storage connectors
- Save → enforced ngay lập tức
Tác động DLP
- Flows hiện tại vi phạm DLP → suspended tự động
- Flows mới → blocked khi dùng sai connector combo
- Users nhận error message thông báo vi phạm
Checklist Triển Khai Power Automate
- Xác định top 5 quy trình lặp lại → automation candidates
- Phân loại connectors cần thiết: Standard vs Premium
- Thiết lập DLP policies qua Power Platform admin center
- Build first flow: email → Teams notification (5 phút)
- Thêm error handling với Scope + failure notifications
- Test flows: happy path + error path trước khi production
- Training team citizen developers tạo simple flows
- Monitor flow analytics và quarterly cleanup flows không dùng
FAQ
Power Automate có free với Microsoft 365 không?
Có — Standard connectors hoàn toàn miễn phí với M365. Mọi user Microsoft 365 Business Basic trở lên có quyền tạo cloud flows với Standard connectors (Outlook, SharePoint, Teams, Excel, Forms, Approvals). Giới hạn: 6,000 API requests/5 phút, 600 actions/flow run. Premium connectors (SQL, HTTP, Dataverse, custom) cần Power Automate Premium ($15/user/tháng) hoặc Per-flow ($100/flow/tháng). Doanh nghiệp VN: 80% use cases chỉ cần Standard. Admin check licenses qua Microsoft 365 admin center → Billing → Licenses.
Trigger "When a new email arrives" có delay bao lâu?
3-5 phút cho Standard plan, gần instant cho Premium. Power Automate poll-based triggers check inbox mỗi 3-5 phút (Standard) hoặc 1-3 phút (Premium). Không phải real-time. Workaround: dùng Outlook Rules (client-side, instant) cho simple actions, hoặc Power Automate Premium giảm polling interval. Scheduled triggers chạy đúng giờ set, manual triggers chạy instant. Admin monitor delays qua Power Platform admin center → Flow run history.
Ai trong tổ chức có thể tạo flows?
Mặc định: tất cả M365 users. Admin control qua Power Platform admin center → Environments → Settings → Who can create. Options: Everyone (default), Only specific security groups, Only admins. Recommended: cho tất cả tạo flows (citizen developer) nhưng apply DLP policies, limit environments (sandbox dev, production restricted), require naming conventions. Monitor qua Power Platform admin center → Analytics.
Flow bị lỗi thường xuyên — troubleshoot thế nào?
3 bước troubleshoot: (1) Flow run history: make.powerautomate.com → My flows → chọn flow → Run history → click failed run → xem action nào fail. (2) Common fixes: "Forbidden 403" = permission issue, "BadRequest 400" = wrong input format, "Throttled 429" = add Delay action. (3) Error handling: add Scope → configure "run after: has failed" → send alert email. Best practice: test mỗi action separately trước khi chạy full flow.
Standard vs Premium connectors — làm sao phân biệt?
Premium connectors hiện icon hình thoi (diamond) trong flow editor. Khi add action → connectors list hiện rõ Standard (free) vs Premium (license required). Quick check: make.powerautomate.com → Connectors → filter "Premium". General rule: M365 services = Standard (SharePoint, Outlook, Teams, Excel), External/database = Premium (SQL, HTTP, Salesforce, custom APIs). Admin dùng DLP policies restrict Premium cho users không có license.
Power Automate Desktop (RPA) khác gì Cloud Flows?
Cloud Flows chạy trên cloud, RPA chạy trên máy local. Cloud flows kết nối API-based services (email, SharePoint, Teams). Desktop flows (RPA) tự động hoá legacy apps không có API — click buttons, fill forms, copy data giữa ứng dụng desktop. Cần Power Automate Premium license ($15/user/tháng). Use case: nhập liệu ERP cũ, extract data từ PDF, thao tác trên SAP GUI. Kết hợp Cloud + Desktop = hybrid automation mạnh nhất.
Nguồn Tham Khảo
- Power Automate Documentation — Microsoft Learn
- Power Automate Connectors Reference
- Power Platform Admin Center Guide
- Power Automate Limits and Configuration
- DLP Policies for Power Platform
- Power Automate Expressions Reference
- Power Automate Licensing Guide — Microsoft
Hành Động Tiếp Theo
- Tạo first flow — email quan trọng → Teams notification (5 phút, Standard connector, miễn phí)
- Thiết lập DLP policy — Power Platform admin center → phân loại Business vs Non-Business connectors
- Audit quy trình thủ công — liệt kê top 5 tasks lặp lại hàng ngày → đánh giá Standard vs Premium connectors cần thiết
Bài Liên Quan Nên Đọc
- Power Automate Excel Data Processing
- Power Automate SharePoint Document Automation
- Power Apps Dataverse Common Data Service
- Power Apps Licensing Plans Per App Per User
- Microsoft 365 Security Best Practices
Kết Luận
| Khía Cạnh | Chi Tiết |
|---|---|
| 3 Building Blocks | Triggers (kích hoạt) → Actions (thực hiện) → Connectors (kết nối) |
| Licensing | Standard miễn phí với M365, Premium $15/user/tháng |
| Admin Governance | DLP policies + environment controls qua Power Platform admin center |
Triggers, Actions, Connectors là 3 thành phần cốt lõi của Power Automate. Standard connectors miễn phí với Microsoft 365 đủ để tự động hoá 80% quy trình lặp lại — email automation, document approval, Teams notifications. Admin governance qua Power Platform admin center với DLP policies kiểm soát connector combinations. Microsoft 365 admin center quản lý licenses. Doanh nghiệp VN nên bắt đầu với Standard connectors, đo lường thời gian tiết kiệm, rồi justify Premium khi cần scale.
Cần triển khai Power Automate cho doanh nghiệp? Liên hệ PUPAM — flow design, DLP governance setup, training citizen developers, và tối ưu hoá automation workflows.