sf-approval-processes

Automates Salesforce approval processes with Apex, Flow, and metadata deployment.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-approval-processes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-approval-processes
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-approval-processes
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-approval-processes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams design, implement, and troubleshoot Salesforce multi-step approval processes so records are routed, locked, and updated reliably during approvals and rejections.

Core Features & Use Cases

  • Architecture guidance: Entry criteria, step routing, parallel vs unanimous approvals, and delegation patterns.
  • Apex integration: Sample Apex for submitting records, approving/rejecting work items, and querying approval history and pending work items.
  • Flow integration & deployment: Guidance for Submit for Approval Flow elements, Spring '26 Integrated Approval Screen, and metadata packaging for deployment.
  • Use Case: Implement a discount approval flow that locks records during review, escalates by amount, and updates status on final decision.

Quick Start

Submit a given Salesforce record for approval, include reviewer comments, and return the approval instance ID and current status.

Frequently Asked Questions about sf-approval-processes

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

FAQPage Schema
How do I submit a Salesforce record for approval using Apex?

You can submit a Salesforce approval process via Apex using the ProcessSubmit method to route records, include reviewer comments, and return the approval instance ID with its current status.

What is the best way to design multi-step Salesforce approval processes?

Designing multi-step Salesforce approval processes requires defining entry criteria, configuring parallel or unanimous step routing, establishing delegation patterns, and setting rules for record locking and status updates upon final decision.

Can I integrate Salesforce approval processes with Flow?

Yes, you can integrate Salesforce approval processes with Flow using Submit for Approval Flow elements and the Spring '26 Integrated Approval Screen to manage submission actions and approval routing visually.

How do I query pending Salesforce approval work items?

Query pending Salesforce approval work items by querying ProcessInstance and ProcessInstanceWorkitem records, and use Apex ProcessWorkitem methods to approve or reject the targeted pending items.

How do I deploy existing Salesforce approval process definitions in metadata?

Deploy existing Salesforce approval process definitions by packaging the approval process metadata and deploying it to the target org, ensuring all process definitions are already present and configured correctly.

Why are my Salesforce records locked during an approval process?

Salesforce records are locked during an approval process to prevent editing while under review, and you can manage this locking behavior through architecture guidance and Apex-driven approve or reject flows.