Run-after: असफलताओं को सलीके से संभालें

इंटरमीडिएट Power Automate

Dani Kahil

Solution Architect | Microsoft MVP

Power Automate में try-catch नहीं है

nanobanana: एक साफ, फ्लैट, मिनिमलिस्ट इलेस्ट्रेशन शुद्ध सफेद बैकग्राउंड पर। बाएँ, लाल स्ट्राइकथ्रू में फीका "try / catch" टेक्स्ट। दाएँ, एक सिंगल एक्शन कार्ड "Send an email" लेबल के साथ, नीचे चार छोटे स्टेटस पिल: "Success", "Failed", "Skipped", "Timed out" DataCamp हरे और लाल चेकमार्क और X आइकन के साथ। एक बोल्ड तीर बाएँ से दाएँ इशारा करता है.

 

  • try / catch कीवर्ड नहीं है
  • हर action में run-after सेटिंग होती है
  • Run-after = कौन से पिछले स्टेप के स्टेटस यह स्टेप ट्रिगर करेंगे
इंटरमीडिएट Power Automate

चार run-after स्टेट्स

nanobanana: शुद्ध सफेद बैकग्राउंड पर चार बराबर आकार के क्षैतिज पिल-शेप्ड स्टेटस बैज की साफ, फ्लैट इलेस्ट्रेशन। क्रम से लेबल: "is successful" (DataCamp हरा, चेकमार्क), "has failed" (लाल, X), "is skipped" (ग्रे, डैश), "has timed out" (ऐंबर, घड़ी आइकन)। मिनिमलिस्ट, कोई शैडो नहीं, सभी चार पर समान वेट.

 

  • is successful — डिफॉल्ट
  • has failed — action में error आया
  • is skipped — Condition या Scope ने स्किप किया
  • has timed out — समय-सीमा पार की
इंटरमीडिएट Power Automate

Failure-handler पैटर्न: parallel branches

$$

mermaid: हरा-नेवी: Send an email से एक success पाथ और साथ-साथ चलने वाला failure-handler जो SharePoint पर लॉग करता है

 

  • जोखिम वाले action के बाद एक parallel branch जोड़ें
  • उसकी run-after को has failed या has timed out पर सेट करें
  • ओरिजिनल पाथ का डिफॉल्ट is successful ही रहे
इंटरमीडिएट Power Automate

सबसे आम run-after बग

 

screenshot_run_after_dialog_default_is_successful: Power Automate run-after कॉन्फ़िगरेशन डायलॉग जिसमें चार चेकबॉक्स हैं: is successful, has failed, is skipped, has timed out - केवल is successful चुना हुआ है, इसे डिफॉल्ट बताने और बदलने की ज़रूरत दिखाने वाला कॉलआउट है

 

  • डिफॉल्ट वाला failure handler कभी ट्रिगर नहीं होगा
  • नई branches is successful को इनहेरिट करती हैं
इंटरमीडिएट Power Automate

Retries: parallel branches से redundancy

nanobanana: शुद्ध सफेद बैकग्राउंड पर साफ, फ्लैट इलेस्ट्रेशन: एक action कार्ड "Send an email — primary" लेबल के साथ, उसके नीचे downstream "Send an email — backup connector"। दोनों को जोड़ती डैश्ड एरो "has failed" लेबल के साथ। बैकअप कार्ड के नीचे अपना downstream "Log success" पिल। DataCamp हरा और नेवी। मिनिमलिस्ट.

 

  • किसी दूसरे connector पर retry चेन करने के लिए run-after का उपयोग करें
  • Parallel branch से ओरिजिनल पाथ स्वतंत्र रहता है
इंटरमीडिएट Power Automate

अभ्यास करते हैं!

इंटरमीडिएट Power Automate

Preparing Video For Download...