salesforce-web-app-creating-records

Installation
SKILL.md

When to Use This Skill

Use this skill when you need to:

  • Create Salesforce records from web applications
  • Implement createRecord functionality for custom or standard objects
  • Handle record ID extraction from create responses
  • Troubleshoot deployment errors related to record creation

Creating Salesforce records (webApplication)

Overview

Implement list and create functionality for any custom object using GraphQL queries and createRecord API with automatic list refresh.

API

  • Use createRecord from @salesforce/webapp-experimental/api:
    • createRecord(objectApiName: string, fields: Record<string, unknown>) → returns a result object that may contain the new record id in different shapes depending on the API version.
Related skills

More from forcedotcom/afv-library

Installs
1
GitHub Stars
290
First Seen
Mar 16, 2026