본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)40k · #7414

salesforce-flow-design

하는 일

이 안내서는 Salesforce 자동화 플로우를 올바르고 안전하게 만드는 데 도움을 줍니다. 알맞은 플로우 유형을 고르는 방법, 흔한 오류를 피하는 방법, 많은 데이터가 있어도 자동화가 잘 작동하도록 하는 방법을 알려 줍니다.

사용하는 경우

  • ✓새 자동화 플로우를 시작할 때.
  • ✓기존 플로우가 잘 만들어졌는지 검토할 때.
  • ✓플로우에 오류가 생기거나 예상대로 작동하지 않을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/salesforce-flow-design/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“많은 고객이 동시에 업데이트되어도 제 영업 플로우가 멈추지 않으려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 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에서 '플로우'란 무엇인가요?

고객 정보를 업데이트하거나 이메일을 보내는 등 반복되는 작업을 코드 없이 자동화하는 도구입니다.

'DML in Loops'가 왜 문제인가요?

목록의 항목마다 저장 같은 작업을 반복하면 매우 느리고, 자원을 너무 많이 써서 시스템이 멈출 수 있습니다.

'fault connector'란 무엇인가요?

무언가 잘못되었을 때 플로우가 가는 대체 경로입니다. 플로우가 그냥 멈추는 대신 오류를 기록하거나 사용자에게 친절하게 알릴 수 있습니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬