salesforce-screen-flow-builder

Generate deployable Salesforce Screen Flow .flow-meta.xml files from requirements.

13|17|Updated Jan 30, 2025
One-click install
npx skills add https://github.com/CodeWithSally/CodeWithSally-Apex-English --skill salesforce-screen-flow-builder-codewithsally
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salesforce-screen-flow-builder
Source: https://github.com/CodeWithSally/CodeWithSally-Apex-English/tree/main/Sessions/AgentforceVibes/Session-012_AgentforceVibes_EngineeringYourCodingAgent_MohithShrivastava/.a4drules/skills/salesforce-screen-flow-builder
Command: npx skills add https://github.com/CodeWithSally/CodeWithSally-Apex-English --skill salesforce-screen-flow-builder-codewithsally

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing valid Salesforce Flow metadata XML by hand is error-prone: elements must be alphabetically ordered, every element needs connectors, DML operations require fault handling, and small mistakes cause deployment failures. This Skill generates complete, deployable .flow-meta.xml files directly from requirements. ## Core Features & Use Cases - Full Flow XML Generation: Produces complete Screen Flow metadata including screens, decisions, record operations, loops, choices, formulas, and variables, written to force-app/main/default/flows/. - Built-in Error Handling Patterns: Every generated flow includes faultConnectors on DML/SOQL elements and an error screen displaying {!$Flow.FaultMessage} with a Try Again path. - Progressive Reference Loading: Ships with a flow metadata reference, screen field type catalog, element pattern library, and two working example flows (data entry and record lookup) loaded only as needed. - Use Case: Ask for a multi-step wizard that collects Account and Contact data with validation, and receive a ready-to-deploy flow file with two-column section layouts, dropdown choices, record creation, and rollback on failure. ## Quick Start Ask the agent to create a Salesforce Screen Flow that collects account and contact details across two screens and creates both records with error handling.

Frequently Asked Questions about salesforce-screen-flow-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Salesforce Screen Flow from requirements?

Describe the screens, fields, and record operations you need, and the Skill generates a complete .flow-meta.xml file written to force-app/main/default/flows/. Deploy it with sf project deploy start and activate it in Setup under Flows.

How to add error handling to a Salesforce flow?

Add a faultConnector on every recordCreates, recordUpdates, recordDeletes, recordLookups, and actionCalls element pointing to an error screen. The error screen displays {!$Flow.FaultMessage} and includes a Try Again back button.

What screen field types does Salesforce Flow support?

Flow screens support InputField, DisplayText, LargeTextArea, DropdownBox, RadioButtons, MultiSelectCheckboxes, ComponentInstance, RegionContainer sections, Repeater, ObjectProvided, and PasswordField. ComponentInstance embeds standard runtime components like flowruntime:datatable or custom LWCs.

Why does my Salesforce flow fail to deploy?

Common causes include orphaned elements without connectors, root element groups not in alphabetical order, storeOutputAutomatically set on screen input fields, or missing processMetadataValues. The Skill enforces all these structural rules during generation.

Can a Screen Flow look up and display records in a datatable?

Yes. Use a recordLookups element with filters and sorting, then display results with a ComponentInstance field using flowruntime:datatable. A decision element can branch to an empty-state screen when no records are found.