Power Automate ก็มี ข้อจำกัด (Limits) ที่ผู้ใช้งานควรรู้ เพื่อวางแผนการออกแบบ Flow ให้มีประสิทธิภาพ และป้องกันปัญหาในอนาคต

ข้อจำกัดด้านจำนวน API Calls ต่อวัน

การใช้งาน Power Automate จะถูกนับจาก API calls ทุกครั้งที่มีการเรียกใช้ Action/Trigger ผ่าน Connector

ประเภท Licenseจำนวน API Calls / 24 ชม. ต่อผู้ใช้
Microsoft 365 (E3/E5/Business)2,000 calls
Power Automate Per User (Premium)40,000 calls
Power Automate Per Flow250,000 calls ต่อ Flow
Power Apps Per User40,000 calls
Power Apps Per App6,000 calls ต่อผู้ใช้ ต่อ App

เกินโควต้าจะทำให้ Flow รันไม่สำเร็จ จนกว่าจะครบ 24 ชั่วโมง

เมื่อครบจำนวน API calls ต่อ 24 ชั่วโมง ทุก Action/Trigger ที่ต้องใช้ API call จะไม่สามารถทำงานได้

API Call ไม่ได้รีเซ็ตตอนเที่ยงคืน แต่จะนับย้อนหลัง 24 ชั่วโมงจากเวลาปัจจุบัน เช่น ถ้าคุณใช้ครบ 2,000 calls ตอน 15:00 น. จะต้องรอจนกว่า calls ที่ใช้ก่อน 15:00 ของเมื่อวานจะ “หลุดออก” จากรอบเวลา ถึงจะรันได้อีก

วิธีป้องกัน

  1. ตรวจสอบจำนวน API calls ที่ใช้ ใน Power Platform Admin Center → Analytics → Power Automate
  2. ลดการเรียก API ซ้ำซ้อน เช่น รวมการ “Get items” เป็นครั้งเดียว แล้วใช้ตัวแปรช่วยประมวลผลต่อ
  3. ใช้ Pagination อย่างเหมาะสม — อย่าดึงข้อมูลทีละ 5,000 records ถ้าไม่จำเป็น
  4. อัปเกรด License ถ้าใช้งานหนัก เช่น จาก Microsoft 365 plan (2,000 calls) ไป Power Automate Per User (Premium)(40,000 calls)
  5. แยก Flow สำหรับงานที่รันบ่อยออกจาก Flow ที่รันไม่บ่อย เพื่อกระจาย load

Podcast also available on PocketCasts, SoundCloud, Spotify, Google Podcasts, Apple Podcasts, and RSS.

Leave a comment