मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)40k · #7414

salesforce-flow-design

यह क्या करती है

यह गाइड आपको Salesforce के ऑटोमेशन फ़्लो सही और सुरक्षित तरीके से बनाने में मदद करती है। यह सिखाती है कि सही फ़्लो प्रकार कैसे चुनें, आम गलतियों से कैसे बचें, और बड़ी मात्रा में डेटा के साथ भी ऑटोमेशन ठीक से काम करे, यह कैसे सुनिश्चित करें।

कब इस्तेमाल करें

  • ✓नया ऑटोमेशन फ़्लो शुरू करते समय।
  • ✓मौजूदा फ़्लो की समीक्षा करते समय, ताकि सुनिश्चित हो कि वह ठीक से बना है।
  • ✓जब कोई फ़्लो गड़बड़ी कर रहा हो या उम्मीद के अनुसार काम न कर रहा हो।

Skill का लिंक

https://github.com/github/awesome-copilot/blob/main/skills/salesforce-flow-design/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/github/awesome-copilot/blob/main/skills/salesforce-flow-design/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरा सेल्स फ़्लो क्रैश न हो, भले ही एक साथ बहुत सारे ग्राहक अपडेट हों, इसके लिए मैं क्या करूँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

गाइड जाँचती है कि आपने अपनी ज़रूरत के हिसाब से सही फ़्लो प्रकार चुना है या नहीं, और क्या वह एक साथ बहुत सारे डेटा रिकॉर्ड संभालने के लिए सेट है। यह यह भी दिखाती है कि एरर प्रोटेक्शन कैसे जोड़ें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Salesforce Flow Design and Validation

Apply these checks to every Flow you design, build, or review.

Step 1 — Confirm Flow Is the Right Tool

Before designing a Flow, verify that a lighter-weight declarative option cannot solve the problem:

Requirement Best tool
Calculate a field value with no side effects Formula field
Prevent a bad record save with a user message Validation rule
Sum or count child records on a parent Roll-up Summary field
Complex multi-object logic, callouts, or high volume Apex (Queueable / Batch) — not Flow
Everything else Flow ✓

If you are building a Flow that could be replaced by a formula field or validation rule, ask the user to confirm the requirement is genuinely more complex.

Step 2 — Select the Correct Flow Type

Use case Flow type Key constraint
Update a field on the same record before it is saved Before-save Record-Triggered Cannot send emails, make callouts, or change related records
Create/update related records, emails, callouts After-save Record-Triggered Runs after commit — avoid recursion traps
Guide a user through a multi-step UI process Screen Flow Cannot be triggered by a record event automatically
Reusable background logic called from another Flow Autolaunched (Subflow) Input/output variables define the contract
Logic invoked from Apex @InvocableMethod Autolaunched (Invocable) Must declare input/output variables
Time-based batch processing Scheduled Flow Runs in batch context — respect governor limits
Respond to events (Platform Events / CDC) Platform Event–Triggered Runs asynchronously — eventual consistency

Decision rule: choose before-save when you only need to change the triggering record's own fields. Move to after-save the moment you need to touch related records, send emails, or make callouts.

Step 3 — Bulk Safety Checklist

These patterns are governor limit failures at scale. Check for all of them before the Flow is activated.

DML in Loops — Automatic Fail

Loop element
  └── Create Records / Update Records / Delete Records  ← ❌ DML inside loop

Fix: collect records inside the loop into a collection variable, then run the DML element outside the loop.

Get Records in Loops — Automatic Fail

Loop element
  └── Get Records  ← ❌ SOQL inside loop

Fix: perform the Get Records query before the loop, then loop over the collection variable.

Correct Bulk Pattern

Get Records — collect all records in one query
└── Loop over the collection variable
    └── Decision / Assignment (no DML, no Get Records)
└── After the loop: Create/Update/Delete Records — one DML operation

Transform vs Loop

When the goal is reshaping a collection (e.g. mapping field values from one object to another), use the Transform element instead of a Loop + Assignment pattern. Transform is bulk-safe by design and produces cleaner Flow graphs.

Step 4 — Fault Path Requirements

Every element that can fail at runtime must have a fault connector. Flows without fault paths surface raw system errors to users.

Elements That Require Fault Connectors

  • Create Records
  • Update Records
  • Delete Records
  • Get Records (when accessing a required record that might not exist)
  • Send Email
  • HTTP Callout / External Service action
  • Apex action (invocable)
  • Subflow (if the subflow can throw a fault)

Fault Handler Pattern

Fault connector → Log Error (Create Records on a logging object or fire a Platform Event)
               → Screen element with user-friendly message (Screen Flows)
               → Stop / End element (Record-Triggered Flows)

Never connect a fault path back to the same element that faulted — this creates an infinite loop.

Step 5 — Automation Density Check

Before deploying, verify there are no overlapping automations on the same object and trigger event:

  • Other active Record-Triggered Flows on the same Object + When to Run combination
  • Legacy Process Builder rules still active on the same object
  • Workflow Rules that fire on the same field changes
  • Apex triggers that also run on the same before insert / after update context

Overlapping automations can cause unexpected ordering, recursion, and governor limit failures. Document the automation inventory for the object before activating.

Step 6 — Screen Flow UX Guidelines

…

अक्सर पूछे जाने वाले सवाल

Salesforce में 'फ़्लो' क्या है?

यह एक ऐसा टूल है जो Salesforce में दोहराए जाने वाले कामों को अपने-आप करता है, जैसे ग्राहक की जानकारी अपडेट करना या ईमेल भेजना, और इसके लिए कोडिंग की ज़रूरत नहीं होती।

'DML in Loops' समस्या क्यों है?

किसी सूची की हर आइटम के लिए बार-बार कोई ऑपरेशन (जैसे डेटा सेव करना) करना बहुत धीमा होता है, और इससे बहुत संसाधन खर्च होने से सिस्टम क्रैश भी हो सकता है।

'fault connectors' क्या हैं?

ये वैकल्पिक रास्ते हैं जो फ़्लो तब लेता है जब कुछ गलत हो जाता है। इससे फ़्लो एरर को लॉग कर सकता है या यूज़र को अच्छे तरीके से बता सकता है, बजाय इसके कि बस रुक जाए।

जानकारी

लेखक का मूल विवरण

Salesforce Flow architecture decisions, flow type selection, bulk safety validation, and fault handling standards. Use this skill when designing or reviewing Record-Triggered, Screen, Autolaunched, Scheduled, or Platform Event flows to ensure correct type selection, no DML/Get Records in loops, proper fault connectors on all data-changing elements, and appropriate automation density checks before

repo: github/awesome-copilot

लोकप्रियता

GitHub स्टार
40k
रैंकिंग में स्थान
#7414
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

acquire-codebase-knowledge

40k

आपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-assess

40k

आपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-generate-instructions

40k

आपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-policy

40k

आपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।

AI और एजेंटएजेंट

मिलती-जुलती skills