You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
W-21745944 dry run deployment and adding guardrails (#107)
W-21745944 make deployment command use --dry-run, add strict guardrails to prevent agent from further editing page
Co-authored-by: Hemant Singh Bisht <hsinghbisht@salesforce.com>
Copy file name to clipboardExpand all lines: skills/generating-flexipage/SKILL.md
+31-57Lines changed: 31 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,41 +43,54 @@ sf template generate flexipage \
43
43
--output-dir force-app/main/default/flexipages
44
44
```
45
45
46
-
**Field Selection Guidelines:**
46
+
**Note:** If the `sf template generate flexipage` command fails, recommend users upgrade to the latest version of the Salesforce CLI:
47
+
```bash
48
+
npm install -g @salesforce/cli@latest
49
+
```
50
+
51
+
#### **Field Selection Guidelines**
47
52
-**Validate fields exist**: Use MCP tools or describe commands to discover available fields for the object before specifying them in the command
48
53
-**Prefer compound fields**: Use `Name` (not `FirstName`/`LastName`), `BillingAddress` (not `BillingStreet`/`BillingCity`/`BillingState`), `MailingAddress`, etc. when available
-**RecordPage**: Requires `--primary-field` and `--secondary-fields` for dynamic highlights, `--detail-fields` for full record details. Use the most important identifying field as primary, e.g. Name. Use the secondary fields (max 12, recommended 4-6) to show a summary of the record. Use detail fields to show the full details of the record.
53
58
-**AppPage**: No additional requirements
54
59
-**HomePage**: No additional requirements
55
60
56
-
**Note:** If the `sf template generate flexipage` command fails, recommend users upgrade to the latest version of the Salesforce CLI:
57
-
```bash
58
-
npm install -g @salesforce/cli@latest
59
-
```
60
-
61
-
62
-
**What you get:**
61
+
#### **What you get**
63
62
- Valid FlexiPage XML with correct structure
64
63
- Pre-configured regions and basic components
65
64
- Proper field references and facet structure
66
65
- Ready to deploy as-is or enhance further
67
66
68
67
### Step 2: Deploy Base Page
69
68
69
+
Run a **dry-run** deployment of the entire project to validate the page and dependencies:
70
70
```bash
71
-
sf project deploy start --source-dir force-app/main/default/flexipages
0 commit comments