@salesforce/afv-skills 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/skills/agentforce-architecture-analyze/README.md +2 -8
  4. package/skills/agentforce-architecture-analyze/SKILL.md +2 -2
  5. package/skills/agentforce-architecture-analyze/references/contract.json +4 -4
  6. package/skills/agentforce-architecture-analyze/references/soql_fields.md +1 -1
  7. package/skills/data360-activate/README.md +0 -1
  8. package/skills/data360-activate/SKILL.md +0 -2
  9. package/skills/data360-connect/README.md +0 -2
  10. package/skills/data360-connect/SKILL.md +0 -2
  11. package/skills/data360-harmonize/SKILL.md +0 -1
  12. package/skills/data360-orchestrate/README.md +0 -7
  13. package/skills/data360-orchestrate/SKILL.md +0 -2
  14. package/skills/data360-prepare/README.md +0 -1
  15. package/skills/data360-prepare/SKILL.md +0 -1
  16. package/skills/data360-query/README.md +0 -1
  17. package/skills/data360-query/SKILL.md +0 -1
  18. package/skills/data360-segment/README.md +0 -1
  19. package/skills/data360-segment/SKILL.md +0 -2
  20. package/skills/dx-code-analyzer-configure/SKILL.md +31 -13
  21. package/skills/dx-code-analyzer-custom-rule-create/SKILL.md +484 -0
  22. package/skills/dx-code-analyzer-custom-rule-create/assets/pmd-ruleset-template.xml +31 -0
  23. package/skills/dx-code-analyzer-custom-rule-create/examples/metadata-xml-example-fields-api.md +87 -0
  24. package/skills/dx-code-analyzer-custom-rule-create/examples/metadata-xml-example-flows.md +105 -0
  25. package/skills/dx-code-analyzer-custom-rule-create/examples/metadata-xml-example-permissions.md +95 -0
  26. package/skills/dx-code-analyzer-custom-rule-create/examples/metadata-xml-examples.md +84 -0
  27. package/skills/dx-code-analyzer-custom-rule-create/examples/regex-examples.md +127 -0
  28. package/skills/dx-code-analyzer-custom-rule-create/examples/xpath-examples.md +227 -0
  29. package/skills/dx-code-analyzer-custom-rule-create/references/advanced-pmd-patterns.md +288 -0
  30. package/skills/dx-code-analyzer-custom-rule-create/references/apex-ast-reference.md +127 -0
  31. package/skills/dx-code-analyzer-custom-rule-create/references/eslint-custom-plugins.md +247 -0
  32. package/skills/dx-code-analyzer-custom-rule-create/references/eslint-rules-discovery.md +188 -0
  33. package/skills/dx-code-analyzer-custom-rule-create/references/eslint-tier2-configurable.md +114 -0
  34. package/skills/dx-code-analyzer-custom-rule-create/references/eslint-tier3-custom-plugins.md +113 -0
  35. package/skills/dx-code-analyzer-custom-rule-create/references/metadata-xml-rules.md +285 -0
  36. package/skills/dx-code-analyzer-custom-rule-create/references/regex-rule-schema.md +174 -0
  37. package/skills/dx-code-analyzer-custom-rule-create/references/troubleshooting.md +141 -0
  38. package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns-governor-limits.md +83 -0
  39. package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns-method-calls.md +108 -0
  40. package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns-security.md +45 -0
  41. package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns-structure.md +127 -0
  42. package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns.md +131 -0
  43. package/skills/dx-code-analyzer-custom-rule-create/scripts/create-pmd-rule.js +209 -0
  44. package/skills/dx-code-analyzer-custom-rule-create/scripts/create-regex-rule.js +220 -0
  45. package/skills/dx-code-analyzer-run/SKILL.md +41 -8
  46. package/skills/experience-cms-brand-apply/SKILL.md +47 -16
  47. package/skills/experience-lwc-generate/README.md +3 -2
  48. package/skills/experience-lwc-generate/references/async-notification-patterns.md +1 -1
  49. package/skills/experience-lwc-generate/references/component-patterns.md +3 -3
  50. package/skills/experience-lwc-generate/references/flow-integration-guide.md +1 -1
  51. package/skills/experience-lwc-generate/references/lwc-best-practices.md +4 -4
  52. package/skills/experience-lwc-generate/references/scoring-and-testing.md +1 -1
  53. package/skills/experience-lwc-generate/references/state-management.md +2 -2
  54. package/skills/experience-lwc-generate/references/triangle-pattern.md +3 -3
  55. package/skills/experience-lwc-generate/scripts/post-tool-validate.py +2 -2
  56. package/skills/experience-lwc-generate/scripts/template_validator.py +1 -1
  57. package/skills/external-diagram-mermaid-generate/README.md +2 -2
  58. package/skills/external-diagram-mermaid-generate/SKILL.md +1 -3
  59. package/skills/external-diagram-mermaid-generate/assets/agentforce/agent-flow.md +4 -4
  60. package/skills/external-diagram-mermaid-generate/assets/architecture/system-landscape.md +1 -1
  61. package/skills/external-diagram-mermaid-generate/assets/datamodel/b2b-commerce-erd.md +3 -3
  62. package/skills/external-diagram-mermaid-generate/assets/datamodel/campaigns-erd.md +1 -1
  63. package/skills/external-diagram-mermaid-generate/assets/datamodel/consent-erd.md +2 -2
  64. package/skills/external-diagram-mermaid-generate/assets/datamodel/files-erd.md +2 -2
  65. package/skills/external-diagram-mermaid-generate/assets/datamodel/forecasting-erd.md +2 -2
  66. package/skills/external-diagram-mermaid-generate/assets/datamodel/fsl-erd.md +2 -2
  67. package/skills/external-diagram-mermaid-generate/assets/datamodel/party-model-erd.md +1 -1
  68. package/skills/external-diagram-mermaid-generate/assets/datamodel/quote-order-erd.md +3 -3
  69. package/skills/external-diagram-mermaid-generate/assets/datamodel/revenue-cloud-erd.md +2 -2
  70. package/skills/external-diagram-mermaid-generate/assets/datamodel/sales-cloud-erd.md +1 -1
  71. package/skills/external-diagram-mermaid-generate/assets/datamodel/salesforce-erd.md +1 -1
  72. package/skills/external-diagram-mermaid-generate/assets/datamodel/scheduler-erd.md +2 -2
  73. package/skills/external-diagram-mermaid-generate/assets/datamodel/service-cloud-erd.md +3 -3
  74. package/skills/external-diagram-mermaid-generate/assets/datamodel/territory-management-erd.md +1 -1
  75. package/skills/external-diagram-mermaid-generate/assets/integration/api-sequence.md +1 -1
  76. package/skills/external-diagram-mermaid-generate/assets/oauth/authorization-code-pkce.md +1 -1
  77. package/skills/external-diagram-mermaid-generate/assets/oauth/authorization-code.md +1 -1
  78. package/skills/external-diagram-mermaid-generate/assets/oauth/client-credentials.md +1 -1
  79. package/skills/external-diagram-mermaid-generate/assets/oauth/device-authorization.md +2 -2
  80. package/skills/external-diagram-mermaid-generate/assets/oauth/jwt-bearer.md +2 -2
  81. package/skills/external-diagram-mermaid-generate/assets/oauth/refresh-token.md +1 -1
  82. package/skills/external-diagram-mermaid-generate/assets/oauth/user-agent-social-sign-on.md +2 -2
  83. package/skills/external-diagram-mermaid-generate/assets/role-hierarchy/user-hierarchy.md +1 -1
  84. package/skills/external-diagram-mermaid-generate/references/color-palette.md +13 -13
  85. package/skills/external-diagram-mermaid-generate/references/diagram-conventions.md +5 -5
  86. package/skills/external-diagram-mermaid-generate/references/erd-conventions.md +1 -1
  87. package/skills/external-diagram-mermaid-generate/references/mermaid-styling.md +2 -2
  88. package/skills/external-diagram-mermaid-generate/references/preview-guide.md +1 -1
  89. package/skills/external-diagram-mermaid-generate/references/usage-examples.md +9 -9
  90. package/skills/external-diagram-mermaid-generate/scripts/README.md +1 -1
  91. package/skills/integration-connectivity-connected-app-configure/README.md +4 -5
  92. package/skills/integration-connectivity-connected-app-configure/SKILL.md +2 -2
  93. package/skills/integration-connectivity-connected-app-configure/references/example-usage.md +7 -7
  94. package/skills/integration-connectivity-connected-app-configure/references/migration-guide.md +1 -1
  95. package/skills/integration-connectivity-connected-app-configure/references/oauth-flows-reference.md +1 -1
  96. package/skills/integration-connectivity-connected-app-configure/references/testing-validation-guide.md +3 -3
  97. package/skills/integration-connectivity-generate/README.md +1 -1
  98. package/skills/integration-connectivity-generate/SKILL.md +6 -0
  99. package/skills/integration-connectivity-generate/assets/callouts/rest-queueable-callout.cls +1 -1
  100. package/skills/integration-connectivity-generate/assets/external-services/external-service-operations.md +1 -1
  101. package/skills/integration-connectivity-generate/assets/soap/wsdl2apex-guide.md +1 -1
  102. package/skills/integration-connectivity-generate/references/callout-patterns.md +4 -0
  103. package/skills/integration-connectivity-generate/references/cdc-guide.md +2 -2
  104. package/skills/integration-connectivity-generate/references/event-driven-architecture-guide.md +5 -5
  105. package/skills/integration-connectivity-generate/references/event-patterns.md +3 -2
  106. package/skills/integration-connectivity-generate/references/external-services-guide.md +4 -1
  107. package/skills/integration-connectivity-generate/references/messaging-api-v2.md +2 -2
  108. package/skills/integration-connectivity-generate/references/named-credentials-automation.md +1 -1
  109. package/skills/integration-connectivity-generate/references/named-credentials-guide.md +12 -2
  110. package/skills/integration-connectivity-generate/references/platform-events-guide.md +3 -3
  111. package/skills/integration-connectivity-generate/references/rest-callout-patterns.md +1 -1
  112. package/skills/integration-connectivity-generate/references/scoring-rubric.md +1 -1
  113. package/skills/integration-connectivity-generate/references/security-best-practices.md +5 -2
  114. package/skills/integration-connectivity-generate/scripts/configure-named-credential.sh +16 -5
  115. package/skills/integration-connectivity-generate/scripts/set-api-credential.sh +11 -2
  116. package/skills/integration-connectivity-generate/scripts/suggest_credential_setup.py +4 -3
  117. package/skills/integration-connectivity-generate/scripts/validate_integration.py +1 -1
  118. package/skills/mobile-platform-native-capabilities-integrate/SKILL.md +3 -3
  119. package/skills/omnistudio-callable-apex-generate/README.md +1 -5
  120. package/skills/omnistudio-callable-apex-generate/SKILL.md +14 -4
  121. package/skills/omnistudio-callable-apex-generate/assets/pattern_callable_vanilla.cls +8 -1
  122. package/skills/omnistudio-callable-apex-generate/examples/Test_VlocityOpenInterface2Conversion/TRANSCRIPT.md +1 -1
  123. package/skills/omnistudio-callable-apex-generate/examples/Test_VlocityOpenInterfaceConversion/TRANSCRIPT.md +1 -1
  124. package/skills/omnistudio-datamapper-generate/SKILL.md +1 -1
  125. package/skills/omnistudio-datamapper-generate/assets/completion-summary-template.md +2 -2
  126. package/skills/omnistudio-datamapper-generate/references/best-practices.md +9 -9
  127. package/skills/omnistudio-datamapper-generate/references/naming-conventions.md +6 -6
  128. package/skills/omnistudio-datapacks-deploy/README.md +1 -1
  129. package/skills/omnistudio-datapacks-deploy/examples/business-internet-plus-bundle/deploy-business-internet-plus-bundle.yaml +1 -1
  130. package/skills/omnistudio-dependencies-analyze/SKILL.md +12 -5
  131. package/skills/omnistudio-dependencies-analyze/references/dependency-patterns.md +9 -9
  132. package/skills/omnistudio-dependencies-analyze/references/namespace-guide.md +1 -1
  133. package/skills/omnistudio-epc-catalog-generate/README.md +1 -1
  134. package/skills/omnistudio-flexcard-generate/SKILL.md +11 -4
  135. package/skills/omnistudio-flexcard-generate/references/best-practices.md +6 -6
  136. package/skills/omnistudio-flexcard-generate/references/data-binding-guide.md +9 -9
  137. package/skills/omnistudio-integration-procedure-generate/SKILL.md +9 -1
  138. package/skills/omnistudio-integration-procedure-generate/references/element-types.md +3 -3
  139. package/skills/omnistudio-omniscript-generate/SKILL.md +2 -2
  140. package/skills/omnistudio-omniscript-generate/references/best-practices.md +1 -1
  141. package/skills/omnistudio-omniscript-generate/scripts/check-duplicate-omniscript.sh +8 -0
  142. package/skills/omnistudio-omniscript-generate/scripts/deploy-omniscript.sh +8 -0
  143. package/skills/platform-apex-logs-debug/README.md +2 -2
  144. package/skills/platform-apex-logs-debug/references/cli-commands.md +2 -2
  145. package/skills/platform-apex-logs-debug/references/debug-log-reference.md +16 -16
  146. package/skills/platform-apex-logs-debug/references/log-analysis-tools.md +2 -2
  147. package/skills/platform-apex-test-run/README.md +1 -1
  148. package/skills/platform-apex-test-run/references/test-fix-loop.md +2 -2
  149. package/skills/platform-apex-test-run/references/testing-best-practices.md +3 -3
  150. package/skills/platform-custom-field-generate/SKILL.md +86 -126
  151. package/skills/platform-custom-field-generate/references/advanced-picklists.md +590 -0
  152. package/skills/platform-data-manage/README.md +4 -4
  153. package/skills/platform-data-manage/references/bulk-testing-example.md +1 -1
  154. package/skills/platform-data-manage/references/crud-workflow-example.md +2 -2
  155. package/skills/platform-data-manage/references/orchestration.md +6 -6
  156. package/skills/platform-flexipage-generate/SKILL.md +281 -346
  157. package/skills/platform-flexipage-generate/references/cli_commands.md +39 -0
  158. package/skills/platform-flexipage-generate/references/flexipage_fieldSection.md +162 -0
  159. package/skills/platform-flexipage-generate/references/flexipage_richText.md +84 -0
  160. package/skills/platform-flexipage-generate/references/identifiers_and_regions.md +167 -0
  161. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +104 -0
  162. package/skills/platform-flexipage-generate/references/record_flexipage_dynamicHighlights.md +119 -0
  163. package/skills/platform-flexipage-generate/references/xml_rules.md +335 -0
  164. package/skills/platform-flexipage-generate/scripts/resolve-component-instructions.sh +42 -0
  165. package/skills/platform-flexipage-generate/scripts/scan-lwc-components.sh +113 -0
  166. package/skills/platform-metadata-deploy/README.md +2 -2
  167. package/skills/platform-metadata-deploy/references/agent-deployment-guide.md +2 -2
  168. package/skills/platform-metadata-deploy/references/deployment-workflows.md +16 -16
  169. package/skills/platform-metadata-deploy/references/orchestration.md +3 -3
  170. package/skills/platform-metadata-deploy/references/trigger-deployment-safety.md +2 -2
  171. package/skills/platform-models-api-configure/SKILL.md +140 -0
  172. package/skills/platform-models-api-configure/scripts/get-orgjwt.sh +48 -0
  173. package/skills/platform-policy-rule-generate/SKILL.md +260 -0
  174. package/skills/platform-policy-rule-generate/references/deploy-errors.md +54 -0
  175. package/skills/platform-policy-rule-generate/references/fixtures-index.md +29 -0
  176. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +250 -0
  177. package/skills/platform-policy-rule-generate/references/templates-access.md +132 -0
  178. package/skills/platform-policy-rule-generate/references/templates-advanced.md +58 -0
  179. package/skills/platform-policy-rule-generate/references/templates-record.md +75 -0
  180. package/skills/platform-policy-rule-generate/references/templates-transform.md +70 -0
  181. package/skills/platform-policy-rule-generate/references/templates.md +10 -0
  182. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +142 -0
  183. package/skills/platform-soql-query/README.md +1 -1
  184. package/skills/platform-soql-query/SKILL.md +1 -1
  185. package/skills/platform-soql-query/references/anti-patterns.md +1 -1
  186. package/skills/platform-soql-query/references/field-coverage-rules.md +1 -1
  187. package/skills/platform-soql-query/references/query-optimization.md +1 -1
  188. package/skills/platform-soql-query/scripts/post-tool-validate.py +3 -3
  189. package/skills/platform-value-set-generate/SKILL.md +305 -0
  190. package/skills/data360-activate/CREDITS.md +0 -5
  191. package/skills/data360-connect/CREDITS.md +0 -5
  192. package/skills/data360-harmonize/CREDITS.md +0 -3
  193. package/skills/data360-orchestrate/CREDITS.md +0 -15
  194. package/skills/data360-orchestrate/UPSTREAM.md +0 -45
  195. package/skills/data360-prepare/CREDITS.md +0 -7
  196. package/skills/data360-query/CREDITS.md +0 -7
  197. package/skills/data360-segment/CREDITS.md +0 -3
  198. package/skills/experience-lwc-generate/CREDITS.md +0 -5
  199. package/skills/external-diagram-mermaid-generate/CREDITS.md +0 -46
  200. package/skills/external-diagram-visual-generate/CREDITS.md +0 -80
  201. package/skills/external-diagram-visual-generate/README.md +0 -83
  202. package/skills/external-diagram-visual-generate/SKILL.md +0 -207
  203. package/skills/external-diagram-visual-generate/assets/architecture/integration-flow.md +0 -55
  204. package/skills/external-diagram-visual-generate/assets/erd/core-objects.md +0 -131
  205. package/skills/external-diagram-visual-generate/assets/erd/custom-objects.md +0 -60
  206. package/skills/external-diagram-visual-generate/assets/lwc/dashboard-card.md +0 -45
  207. package/skills/external-diagram-visual-generate/assets/lwc/data-table.md +0 -57
  208. package/skills/external-diagram-visual-generate/assets/lwc/record-form.md +0 -60
  209. package/skills/external-diagram-visual-generate/assets/review/apex-review.md +0 -57
  210. package/skills/external-diagram-visual-generate/assets/review/lwc-review.md +0 -48
  211. package/skills/external-diagram-visual-generate/references/architect-aesthetic-guide.md +0 -257
  212. package/skills/external-diagram-visual-generate/references/examples-index.md +0 -35
  213. package/skills/external-diagram-visual-generate/references/gemini-cli-setup.md +0 -65
  214. package/skills/external-diagram-visual-generate/references/interview-questions.md +0 -529
  215. package/skills/external-diagram-visual-generate/references/iteration-workflow.md +0 -173
  216. package/skills/external-diagram-visual-generate/scripts/check-prerequisites.sh +0 -101
  217. package/skills/external-diagram-visual-generate/scripts/generate_image.py +0 -243
  218. package/skills/integration-connectivity-connected-app-configure/CREDITS.md +0 -3
  219. package/skills/integration-connectivity-generate/CREDITS.md +0 -5
  220. package/skills/omnistudio-callable-apex-generate/CREDITS.md +0 -9
  221. package/skills/omnistudio-datamapper-generate/CREDITS.md +0 -5
  222. package/skills/omnistudio-datapacks-deploy/CREDITS.md +0 -5
  223. package/skills/omnistudio-dependencies-analyze/CREDITS.md +0 -5
  224. package/skills/omnistudio-epc-catalog-generate/CREDITS.md +0 -14
  225. package/skills/omnistudio-flexcard-generate/CREDITS.md +0 -5
  226. package/skills/omnistudio-integration-procedure-generate/CREDITS.md +0 -5
  227. package/skills/omnistudio-omniscript-generate/CREDITS.md +0 -5
  228. package/skills/platform-apex-generate/CREDITS.md +0 -5
  229. package/skills/platform-apex-logs-debug/CREDITS.md +0 -22
  230. package/skills/platform-apex-test-generate/CREDITS.md +0 -5
  231. package/skills/platform-apex-test-run/CREDITS.md +0 -22
  232. package/skills/platform-data-manage/CREDITS.md +0 -5
  233. package/skills/platform-metadata-deploy/CREDITS.md +0 -25
  234. package/skills/platform-soql-query/CREDITS.md +0 -21
  235. /package/skills/omnistudio-callable-apex-generate/examples/Test_VlocityOpenInterfaceConversion/{MyCustomVlocityOpenInterface2.cls → MyCustomClass.cls} +0 -0
@@ -60,7 +60,7 @@ The Pub/Sub API is the **recommended mechanism for external consumers** subscrib
60
60
 
61
61
  ### External Consumer Architecture
62
62
 
63
- ```
63
+ ```text
64
64
  Salesforce Org
65
65
  └── Platform Event / CDC Event
66
66
  └── Pub/Sub API (gRPC endpoint)
@@ -106,7 +106,7 @@ Salesforce Event Relays forward Platform Events to AWS EventBridge, enabling clo
106
106
 
107
107
  ### Architecture
108
108
 
109
- ```
109
+ ```text
110
110
  Salesforce Platform Event
111
111
  └── Event Relay Definition (Metadata)
112
112
  └── AWS EventBridge Partner Event Source
@@ -156,7 +156,7 @@ For organizations needing long-retention, high-throughput event streaming beyond
156
156
 
157
157
  ### Integration Pattern
158
158
 
159
- ```
159
+ ```text
160
160
  Salesforce → Platform Event → Apex/Flow subscriber → Heroku Kafka producer
161
161
  └── Consumer Group A (analytics)
162
162
  └── Consumer Group B (data lake)
@@ -187,7 +187,7 @@ For scenarios requiring high-volume data push to external systems:
187
187
 
188
188
  ### Recommended Pattern: Middleware + Platform Events
189
189
 
190
- ```
190
+ ```text
191
191
  Salesforce Record Change
192
192
  └── After-Save Flow / Trigger
193
193
  └── Publish Platform Event (lightweight payload)
@@ -255,7 +255,7 @@ List<EventBusSubscriber> subs = [
255
255
 
256
256
  ## Summary: EDA Decision Tree
257
257
 
258
- ```
258
+ ```text
259
259
  Need real-time data sync?
260
260
  ├── YES → Is consumer external?
261
261
  │ ├── YES → Pub/Sub API + Platform Events (or CDC for record changes)
@@ -191,6 +191,7 @@ OrderStatusPublisher.publishEvents(events);
191
191
  ### Event Subscriber Trigger
192
192
 
193
193
  **Template**: `assets/platform-events/event-subscriber-trigger.trigger`
194
+ **Template**: `assets/platform-events/event-subscriber-action.cls`
194
195
 
195
196
  #### Standard Volume Subscriber
196
197
 
@@ -534,7 +535,7 @@ public static void handleUpdate(OpportunityChangeEvent event, List<String> chang
534
535
 
535
536
  ### Decision Matrix
536
537
 
537
- ```
538
+ ```text
538
539
  ┌───────────────────────────────────────────────────────────────────────┐
539
540
  │ WHEN TO USE PLATFORM EVENTS vs CHANGE DATA CAPTURE │
540
541
  ├───────────────────────────────────────────────────────────────────────┤
@@ -816,7 +817,7 @@ EventBus.publish(event);
816
817
 
817
818
  ### 3. Using Platform Events for Synchronous-Style Flow Orchestration
818
819
 
819
- ```
820
+ ```javascript
820
821
  // ❌ WRONG: Using events to simulate synchronous request/response
821
822
  Flow A → Publish "Request" Event → Subscriber triggers Flow B → Publish "Response" Event → ???
822
823
  ```
@@ -7,7 +7,7 @@ External Services in Salesforce automatically generate Apex classes from OpenAPI
7
7
 
8
8
  ## How It Works
9
9
 
10
- ```
10
+ ```text
11
11
  ┌─────────────────────────────────────────────────────────────────┐
12
12
  │ EXTERNAL SERVICE FLOW │
13
13
  ├─────────────────────────────────────────────────────────────────┤
@@ -43,6 +43,9 @@ External Services in Salesforce automatically generate Apex classes from OpenAPI
43
43
 
44
44
  ### Via Metadata API
45
45
 
46
+ **Template**: `assets/external-services/openapi-registration.externalServiceRegistration-meta.xml`
47
+ **Reference**: `assets/external-services/external-service-operations.md`
48
+
46
49
  ```xml
47
50
  <?xml version="1.0" encoding="UTF-8"?>
48
51
  <ExternalServiceRegistration xmlns="http://soap.sforce.com/2006/04/metadata">
@@ -7,7 +7,7 @@ This guide covers building custom clients for Messaging for In-App and Web (MIAW
7
7
 
8
8
  ## Overview
9
9
 
10
- ```
10
+ ```text
11
11
  ┌─────────────────────────────────────────────────────────────────────────┐
12
12
  │ MIAW CUSTOM CLIENT ARCHITECTURE │
13
13
  ├─────────────────────────────────────────────────────────────────────────┤
@@ -47,7 +47,7 @@ This guide covers building custom clients for Messaging for In-App and Web (MIAW
47
47
 
48
48
  ### Embedded Service Deployment
49
49
 
50
- ```
50
+ ```text
51
51
  Setup → Embedded Service Deployments → New Deployment
52
52
  ├─ Type: Messaging for In-App and Web
53
53
  ├─ Channel: Web
@@ -11,7 +11,7 @@ This guide explains how to automate Named Credential configuration using the int
11
11
 
12
12
  Enhanced Named Credentials = **External Credential** + **Named Credential** + **Endpoint Security**
13
13
 
14
- ```
14
+ ```text
15
15
  External Credential (stores the API key securely)
16
16
 
17
17
  Named Credential (references the External Credential)
@@ -20,7 +20,7 @@ Named Credentials provide secure storage of authentication credentials and endpo
20
20
  - Permission Set-based access control
21
21
  - More secure and flexible
22
22
 
23
- ```
23
+ ```text
24
24
  ┌─────────────────────────────────────────────────────────────────┐
25
25
  │ CREDENTIAL ARCHITECTURE (API 61+) │
26
26
  ├─────────────────────────────────────────────────────────────────┤
@@ -46,6 +46,9 @@ Named Credentials provide secure storage of authentication credentials and endpo
46
46
 
47
47
  ### 1. OAuth 2.0 Client Credentials
48
48
 
49
+ **Template**: `assets/named-credentials/oauth-client-credentials.namedCredential-meta.xml`
50
+ **Template**: `assets/external-credentials/oauth-external-credential.externalCredential-meta.xml`
51
+
49
52
  **Use Case**: Server-to-server integration without user context
50
53
 
51
54
  ```apex
@@ -63,6 +66,9 @@ req.setMethod('GET');
63
66
 
64
67
  ### 2. OAuth 2.0 JWT Bearer
65
68
 
69
+ **Template**: `assets/named-credentials/oauth-jwt-bearer.namedCredential-meta.xml`
70
+ **Template**: `assets/external-credentials/jwt-external-credential.externalCredential-meta.xml`
71
+
66
72
  **Use Case**: Certificate-based server-to-server auth
67
73
 
68
74
  **Prerequisites**:
@@ -78,6 +84,8 @@ req.setMethod('GET');
78
84
 
79
85
  ### 3. Certificate-Based (Mutual TLS)
80
86
 
87
+ **Template**: `assets/named-credentials/certificate-auth.namedCredential-meta.xml`
88
+
81
89
  **Use Case**: High-security integrations requiring client certificate
82
90
 
83
91
  **Setup**:
@@ -88,6 +96,8 @@ req.setMethod('GET');
88
96
 
89
97
  ### 4. Basic Auth / API Key
90
98
 
99
+ **Template**: `assets/named-credentials/custom-auth.namedCredential-meta.xml`
100
+
91
101
  **Use Case**: Simple APIs, internal systems
92
102
 
93
103
  **Pattern for API Key**:
@@ -134,7 +144,7 @@ public class ExternalServiceCallout {
134
144
 
135
145
  ### Pattern 2: Multiple Environments
136
146
 
137
- ```
147
+ ```text
138
148
  Named Credentials:
139
149
  ├── MyAPI_Dev → https://api-dev.example.com
140
150
  ├── MyAPI_UAT → https://api-uat.example.com
@@ -60,7 +60,7 @@ Platform Events enable event-driven architecture in Salesforce. They provide a s
60
60
 
61
61
  ### File Location
62
62
 
63
- ```
63
+ ```text
64
64
  force-app/main/default/objects/Order_Update_Event__e/Order_Update_Event__e.object-meta.xml
65
65
  ```
66
66
 
@@ -125,7 +125,7 @@ trigger OrderUpdateSubscriber on Order_Update_Event__e (after insert) {
125
125
 
126
126
  External systems can subscribe using CometD streaming:
127
127
 
128
- ```
128
+ ```text
129
129
  /event/Order_Update_Event__e
130
130
  ```
131
131
 
@@ -268,7 +268,7 @@ WHERE Topic = 'Order_Update_Event__e'
268
268
 
269
269
  Use CometD client to connect to Streaming API:
270
270
 
271
- ```
271
+ ```text
272
272
  Endpoint: /cometd/62.0
273
273
  Channel: /event/Order_Update_Event__e
274
274
  ```
@@ -21,7 +21,7 @@ This guide covers patterns for making HTTP callouts from Salesforce Apex to exte
21
21
  - Background processing
22
22
  - Long-running operations
23
23
 
24
- ```
24
+ ```text
25
25
  ┌─────────────────────────────────────────────────────────────────┐
26
26
  │ CALLOUT CONTEXT DECISION │
27
27
  ├─────────────────────────────────────────────────────────────────┤
@@ -25,7 +25,7 @@
25
25
 
26
26
  ## Scoring Output Format
27
27
 
28
- ```
28
+ ```text
29
29
  📊 INTEGRATION SCORE: XX/120 ⭐⭐⭐⭐ Rating
30
30
  ════════════════════════════════════════════════════
31
31
 
@@ -38,7 +38,7 @@ req.setEndpoint('https://api.example.com');
38
38
 
39
39
  Request only necessary scopes:
40
40
 
41
- ```
41
+ ```text
42
42
  ✅ read:orders write:orders
43
43
  ❌ admin:* read:* write:*
44
44
  ```
@@ -54,7 +54,7 @@ Request only necessary scopes:
54
54
 
55
55
  For mobile or SPA clients:
56
56
 
57
- ```
57
+ ```text
58
58
  Use Authorization Code with PKCE, not Implicit flow
59
59
  ```
60
60
 
@@ -62,6 +62,9 @@ Use Authorization Code with PKCE, not Implicit flow
62
62
 
63
63
  ### Remote Site Settings
64
64
 
65
+ **Template**: `assets/endpoint-security/example.remoteSite-meta.xml`
66
+ **Template**: `assets/endpoint-security/example.cspTrustedSite-meta.xml`
67
+
65
68
  - Only allow necessary domains
66
69
  - Don't use wildcard domains
67
70
  - Review and audit regularly
@@ -72,6 +72,12 @@ EXTERNAL_CREDENTIAL_NAME=$1
72
72
  PRINCIPAL_NAME=$2
73
73
  ORG_ALIAS=$3
74
74
 
75
+ # Validate EXTERNAL_CREDENTIAL_NAME for SOQL safety
76
+ if [[ ! "$EXTERNAL_CREDENTIAL_NAME" =~ ^[a-zA-Z0-9_]+$ ]]; then
77
+ echo -e "${RED}ERROR: Invalid credential name '$EXTERNAL_CREDENTIAL_NAME'. Only alphanumeric and underscores allowed.${NC}" >&2
78
+ exit 1
79
+ fi
80
+
75
81
  # Validate sf CLI is installed
76
82
  if ! command -v sf &> /dev/null; then
77
83
  echo -e "${RED}Error: Salesforce CLI (sf) is not installed${NC}"
@@ -138,10 +144,16 @@ fi
138
144
  echo -e "${GREEN}✓ API key received${NC}"
139
145
  echo ""
140
146
 
147
+ # Escape single quotes to prevent Apex injection
148
+ API_KEY_ESCAPED="${API_KEY//\'/\\\'}"
149
+ EXTERNAL_CREDENTIAL_NAME_ESCAPED="${EXTERNAL_CREDENTIAL_NAME//\'/\\\'}"
150
+ PRINCIPAL_NAME_ESCAPED="${PRINCIPAL_NAME//\'/\\\'}"
151
+
141
152
  # Generate Apex code to configure credential
142
153
  echo -e "${BLUE}► Generating Apex code to configure credential...${NC}"
143
154
 
144
155
  TEMP_APEX=$(mktemp /tmp/set-credential-XXXXXX.apex)
156
+ trap 'rm -f "$TEMP_APEX"' EXIT
145
157
 
146
158
  cat > "$TEMP_APEX" << EOF
147
159
  // Auto-generated by configure-named-credential.sh
@@ -151,14 +163,14 @@ cat > "$TEMP_APEX" << EOF
151
163
  ConnectApi.CredentialInput newCredentials = new ConnectApi.CredentialInput();
152
164
 
153
165
  // Specify the External Credential
154
- newCredentials.externalCredential = '$EXTERNAL_CREDENTIAL_NAME';
166
+ newCredentials.externalCredential = '$EXTERNAL_CREDENTIAL_NAME_ESCAPED';
155
167
 
156
168
  // Set authentication protocol
157
169
  newCredentials.authenticationProtocol = ConnectApi.CredentialAuthenticationProtocol.Custom;
158
170
 
159
171
  // Define the principal
160
172
  newCredentials.principalType = ConnectApi.CredentialPrincipalType.NamedPrincipal;
161
- newCredentials.principalName = '$PRINCIPAL_NAME';
173
+ newCredentials.principalName = '$PRINCIPAL_NAME_ESCAPED';
162
174
 
163
175
  // Create credentials map
164
176
  Map<String, ConnectApi.CredentialValueInput> creds = new Map<String, ConnectApi.CredentialValueInput>();
@@ -166,7 +178,7 @@ Map<String, ConnectApi.CredentialValueInput> creds = new Map<String, ConnectApi.
166
178
  // Create API key parameter
167
179
  ConnectApi.CredentialValueInput apiKeyParam = new ConnectApi.CredentialValueInput();
168
180
  apiKeyParam.encrypted = true; // Required for security
169
- apiKeyParam.value = '$API_KEY';
181
+ apiKeyParam.value = '$API_KEY_ESCAPED';
170
182
 
171
183
  // Add to credentials map
172
184
  creds.put('apiKey', apiKeyParam);
@@ -230,7 +242,6 @@ else
230
242
  echo -e "${YELLOW}Apex execution output:${NC}"
231
243
  echo "$APEX_RESULT"
232
244
  echo ""
233
- echo -e "${YELLOW}Temp Apex file saved at: $TEMP_APEX${NC}"
234
- echo "Review the file and run manually if needed"
245
+ echo -e "${YELLOW}Re-run this script to retry.${NC}"
235
246
  exit 1
236
247
  fi
@@ -45,6 +45,12 @@ SETTING_NAME=$1
45
45
  API_KEY=$2
46
46
  ORG_ALIAS=$3
47
47
 
48
+ # Validate SETTING_NAME to prevent SOQL injection
49
+ if [[ ! "$SETTING_NAME" =~ ^[a-zA-Z0-9_]+$ ]]; then
50
+ echo -e "${RED}Error: Invalid setting name '$SETTING_NAME'. Only alphanumeric and underscores allowed.${NC}" >&2
51
+ exit 1
52
+ fi
53
+
48
54
  # If API key is "-", prompt securely
49
55
  if [ "$API_KEY" = "-" ]; then
50
56
  echo -e "${YELLOW}Enter API key (input hidden):${NC}"
@@ -58,6 +64,9 @@ if [ -z "$API_KEY" ]; then
58
64
  exit 1
59
65
  fi
60
66
 
67
+ # Escape single quotes in API_KEY for safe interpolation
68
+ API_KEY_ESCAPED="${API_KEY//\'/\\\'}"
69
+
61
70
  # Validate org
62
71
  echo -e "${BLUE}Validating org connection...${NC}"
63
72
  if ! sf org display --target-org "$ORG_ALIAS" &> /dev/null; then
@@ -120,7 +129,7 @@ if [ -z "$EXISTING_ID" ]; then
120
129
  echo -e "${BLUE}Creating new credential record...${NC}"
121
130
  sf data create record \
122
131
  --sobject API_Credentials__c \
123
- --values "Name='$SETTING_NAME' API_Key__c='$API_KEY'" \
132
+ --values "Name='$SETTING_NAME' API_Key__c='$API_KEY_ESCAPED'" \
124
133
  --target-org "$ORG_ALIAS"
125
134
  echo -e "${GREEN}✓ Credential created${NC}"
126
135
  else
@@ -128,7 +137,7 @@ else
128
137
  sf data update record \
129
138
  --sobject API_Credentials__c \
130
139
  --record-id "$EXISTING_ID" \
131
- --values "API_Key__c='$API_KEY'" \
140
+ --values "API_Key__c='$API_KEY_ESCAPED'" \
132
141
  --target-org "$ORG_ALIAS"
133
142
  echo -e "${GREEN}✓ Credential updated${NC}"
134
143
  fi
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- Credential Setup Suggestion Hook for building-sf-integrations
3
+ Credential Setup Suggestion Hook for integration-connectivity-generate
4
4
 
5
5
  Detects when credential metadata files are created and suggests
6
6
  running the appropriate automation scripts.
@@ -19,6 +19,7 @@ import os
19
19
  import re
20
20
  import sys
21
21
  from pathlib import Path
22
+ from typing import Optional
22
23
 
23
24
  # File pattern matchers
24
25
  PATTERNS = {
@@ -82,7 +83,7 @@ SCRIPT_RECOMMENDATIONS = {
82
83
  }
83
84
 
84
85
 
85
- def detect_file_type(file_path: str) -> str | None:
86
+ def detect_file_type(file_path: str) -> Optional[str]:
86
87
  """Detect the credential file type from the file path."""
87
88
  filename = os.path.basename(file_path)
88
89
 
@@ -204,7 +205,7 @@ def generate_suggestion_message(file_type: str, cred_name: str, file_context: di
204
205
  if file_context.get('has_oauth'):
205
206
  lines.extend([
206
207
  '',
207
- '⚠️ OAuth detected: Consider using /configuring-connected-apps to',
208
+ '⚠️ OAuth detected: Consider using /integration-connectivity-connected-app-configure to',
208
209
  ' create the Connected App for this credential.',
209
210
  ])
210
211
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- building-sf-integrations Validation Script
3
+ integration-connectivity-generate Validation Script
4
4
 
5
5
  Validates integration-related files against best practices.
6
6
  Scoring: 120 points across 6 categories.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mobile-platform-native-capabilities-integrate
3
- description: "Build a Salesforce LWC that uses native mobile device capabilities — barcode scanner, biometrics, location, NFC, calendar, contacts, document scanner, geofencing, AR space capture, app review, and payments. Use this skill when the user asks for an LWC that scans a barcode, captures a photo of a document, reads location or geofences, prompts for biometrics, reads/writes the device calendar or contacts, taps NFC, takes a payment, prompts for an app review, or scans an AR space. Also triggers on \"lightning/mobileCapabilities\", \"mobile capability\", \"Nimbus\", \"device capability\". Do not use for mobile offline / Komaci priming reviews (use `mobile-platform-offline-validate`) or for picking generic Lightning base components (use a generic Lightning base components skill)."
3
+ description: "Build a Salesforce LWC that uses native mobile device capabilities — barcode scanner, biometrics, location, NFC, calendar, contacts, document scanner, geofencing, AR space capture, app review, and payments. Use this skill when the user asks for an LWC that scans a barcode, captures a photo of a document, reads location or geofences, prompts for biometrics, reads/writes the device calendar or contacts, taps NFC, takes a payment, prompts for an app review, or scans an AR space. Also triggers on \"lightning/mobileCapabilities\", \"mobile capability\", \"Nimbus\", \"device capability\". Do not use for mobile offline / Komaci priming reviews (use `mobile-platform-offline-validate`) or for picking generic Lightning base components (use `design-systems-slds-apply`)."
4
4
  metadata:
5
5
  version: "1.0"
6
6
  ---
@@ -32,8 +32,8 @@ Do NOT use this skill for:
32
32
 
33
33
  - Mobile-offline review of an LWC (lwc:if, inline GraphQL, Komaci-priming
34
34
  violations) — use `mobile-platform-offline-validate`.
35
- - Picking generic Lightning Base Components — use
36
- `using-lightning-base-components`.
35
+ - Choosing or styling generic Lightning Base Components / SLDS blueprints
36
+ use `design-systems-slds-apply`.
37
37
 
38
38
  ## Prerequisites
39
39
 
@@ -17,7 +17,7 @@ rubric and migration guidance from legacy `VlocityOpenInterface` implementations
17
17
 
18
18
  ### 1. Invoke the skill
19
19
 
20
- ```
20
+ ```text
21
21
  Skill: omnistudio-callable-apex-generate
22
22
  Request: "Create a callable implementation for Order actions with createOrder and cancelOrder"
23
23
  ```
@@ -66,10 +66,6 @@ The skill generates:
66
66
  | platform-apex-test-run | Run tests and analyze coverage |
67
67
  | platform-metadata-deploy | Deploy callable classes to an org |
68
68
 
69
- ## Documentation
70
-
71
- - [Skill Instructions](SKILL.md)
72
-
73
69
  ### VlocityOpenInterface / VlocityOpenInterface2
74
70
 
75
71
  The skill includes design (Phase 2) and implementation (Phase 3) guidance for the Open Interface signature `invokeMethod(String methodName, Map<String, Object> inputMap, Map<String, Object> outputMap, Map<String, Object> options)`. Use this when extending legacy OmniStudio/Vlocity integration points or building dual Callable + Open Interface implementations.
@@ -53,7 +53,7 @@ Then:
53
53
  - Output schema (consistent response envelope)
54
54
 
55
55
  **Recommended response envelope**:
56
- ```
56
+ ```json
57
57
  {
58
58
  "success": true|false,
59
59
  "data": {...},
@@ -70,7 +70,7 @@ Then:
70
70
 
71
71
  When designing for legacy Open Interface extensions (or dual Callable + Open Interface support), map the signature:
72
72
 
73
- ```
73
+ ```text
74
74
  invokeMethod(String methodName, Map<String, Object> inputMap, Map<String, Object> outputMap, Map<String, Object> options)
75
75
  ```
76
76
 
@@ -171,7 +171,7 @@ action contract stable.
171
171
  | **Testing** | 15 | Positive/negative/contract/bulk tests |
172
172
  | **Documentation** | 10 | ApexDoc (`/** ... */` block comments — Salesforce Apex documentation standard) for class and action methods |
173
173
 
174
- **Thresholds**: 90+ (Ready) | ⚠️ 70-89 (Review) | <70 (Block)
174
+ **Thresholds**: [PASS] 90+ (Ready) | [REVIEW] 70-89 (Review) | [BLOCK] <70 (Block)
175
175
 
176
176
  ---
177
177
 
@@ -266,10 +266,20 @@ Deliverables produced by this skill:
266
266
  | `examples/Test_VlocityOpenInterfaceConversion/MyCustomCallable.cls` | Phase 3 — migration pattern from legacy `VlocityOpenInterface` |
267
267
  | `examples/Test_VlocityOpenInterfaceConversion/MyCustomCallableTest.cls` | Phase 4 — test class for VlocityOpenInterface migration example |
268
268
  | `examples/Test_VlocityOpenInterfaceConversion/IndustriesCallableException.cls` | Phase 3 — custom exception class deployed alongside VlocityOpenInterface conversion |
269
- | `examples/Test_VlocityOpenInterfaceConversion/MyCustomVlocityOpenInterface2.cls` | Phase 3 — the original legacy VlocityOpenInterface2 class before migration |
269
+ | `examples/Test_VlocityOpenInterfaceConversion/MyCustomClass.cls` | Phase 3 — the original legacy VlocityOpenInterface class before migration |
270
270
  | `examples/Test_VlocityOpenInterfaceConversion/TRANSCRIPT.md` | Reference — reasoning transcript for VlocityOpenInterface conversion |
271
271
  | `examples/Test_VlocityOpenInterface2Conversion/MyCustomCallable.cls` | Phase 3 — migration pattern from `VlocityOpenInterface2` |
272
272
  | `examples/Test_VlocityOpenInterface2Conversion/MyCustomCallableTest.cls` | Phase 4 — test class for VlocityOpenInterface2 migration example |
273
273
  | `examples/Test_VlocityOpenInterface2Conversion/IndustriesCallableException.cls` | Phase 3 — custom exception class deployed alongside VlocityOpenInterface2 conversion |
274
274
  | `examples/Test_VlocityOpenInterface2Conversion/MyCustomRemoteClass.cls` | Phase 3 — remote class used by the VlocityOpenInterface2 migration example |
275
275
  | `examples/Test_VlocityOpenInterface2Conversion/TRANSCRIPT.md` | Reference — reasoning transcript for VlocityOpenInterface2 conversion |
276
+
277
+ ---
278
+
279
+ ## Pre-Delivery Checklist
280
+
281
+ - [ ] `call()` null-checks `args` before accessing keys
282
+ - [ ] `IndustriesCallableException` class included in deployment package
283
+ - [ ] Namespace qualified for `omnistudio.VlocityOpenInterface2` (if applicable)
284
+ - [ ] `outputMap` keys documented per action (success and error cases)
285
+ - [ ] Migrated callers read return value instead of `outputMap` by reference
@@ -20,7 +20,14 @@ public with sharing class Industries_XxxCallable implements System.Callable {
20
20
  }
21
21
 
22
22
  private Map<String, Object> actionOne(Map<String, Object> args) {
23
- // 1. Validate required keys (e.g. args.get('requiredKey'))
23
+ // 1. Validate required keys
24
+ Map<String, Object> inputMap = (Map<String, Object>) args.get('inputMap');
25
+ if (inputMap == null || inputMap.isEmpty()) {
26
+ return new Map<String, Object>{
27
+ 'success' => false,
28
+ 'error' => 'Missing required input in inputMap'
29
+ };
30
+ }
24
31
  // 2. Coerce types safely
25
32
  // 3. Run business logic (SOQL with WITH USER_MODE, DML with sharing)
26
33
  // 4. Return response envelope
@@ -43,7 +43,7 @@ Convert a VlocityOpenInterface2 implementation (`MyCustomRemoteClass`) to `Syste
43
43
  - `switch on action` with `when else` throwing `IndustriesCallableException`
44
44
 
45
45
  - **Response envelope:**
46
- ```
46
+ ```json
47
47
  { success, data: { total }, errors }
48
48
  ```
49
49
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Task
4
4
 
5
- Convert `MyCustomVlocityOpenInterface2.cls` (VlocityOpenInterface) to System.Callable and create a test class. Keep a transcript of reasoning and skills used.
5
+ Convert `MyCustomClass.cls` (VlocityOpenInterface) to System.Callable and create a test class. Keep a transcript of reasoning and skills used.
6
6
 
7
7
  ---
8
8
 
@@ -167,7 +167,7 @@ Use the **platform-metadata-deploy** skill: "Proceed with actual deployment to [
167
167
  | **Performance** | 15 | Bounded queries with LIMIT/filters; Turbo Extract for read-heavy scenarios; minimal relationship depth; indexed filter fields |
168
168
  | **Documentation** | 15 | Description on OmniDataTransform record; field mapping rationale documented; consuming components identified |
169
169
 
170
- **Thresholds**: 90+ (Deploy) | ⚠️ 67-89 (Review) | <67 (Block - fix required)
170
+ **Thresholds**: [PASS] 90+ (Deploy) | [REVIEW] 67-89 (Review) | [BLOCK] <67 (Block - fix required)
171
171
 
172
172
  ---
173
173
 
@@ -4,7 +4,7 @@ Use these templates in Phase 3 (scoring output) and Phase 5 (completion summary)
4
4
 
5
5
  ## Scoring Output (Phase 3)
6
6
 
7
- ```
7
+ ```text
8
8
  Score: XX/100 Rating
9
9
  |- Design & Naming: XX/20
10
10
  |- Field Mapping: XX/25
@@ -17,7 +17,7 @@ Score: XX/100 Rating
17
17
 
18
18
  ## Completion Summary (Phase 5)
19
19
 
20
- ```
20
+ ```text
21
21
  Data Mapper Complete: [Name]
22
22
  Type: [Extract|Transform|Load|Turbo Extract]
23
23
  Target Object(s): [Object1, Object2]
@@ -65,7 +65,7 @@ Do NOT use Load when:
65
65
 
66
66
  Always specify fields explicitly. Never rely on wildcard or "all fields" selection.
67
67
 
68
- ```
68
+ ```text
69
69
  Good: Account.Name, Account.Industry, Account.BillingCity
70
70
  Bad: Account.* (extracts all fields, wastes bandwidth and heap)
71
71
  ```
@@ -74,14 +74,14 @@ Bad: Account.* (extracts all fields, wastes bandwidth and heap)
74
74
 
75
75
  Data Mapper fields use dot-notation paths for input and output:
76
76
 
77
- ```
77
+ ```text
78
78
  Input Path: AccountData.Name
79
79
  Output Path: Account.Name
80
80
  ```
81
81
 
82
82
  For nested structures:
83
83
 
84
- ```
84
+ ```text
85
85
  Input Path: Response.data.accounts[0].name
86
86
  Output Path: AccountList.Name
87
87
  ```
@@ -106,7 +106,7 @@ When loading records with lookup relationships:
106
106
  2. Specify the lookup object and match field (e.g., `Account.Name` to resolve `AccountId`)
107
107
  3. Handle cases where the lookup returns no match (set default or fail gracefully)
108
108
 
109
- ```
109
+ ```text
110
110
  Field: AccountId
111
111
  Lookup Object: Account
112
112
  Match Field: Name
@@ -132,7 +132,7 @@ For Extract and Turbo Extract, filter on indexed fields whenever possible:
132
132
 
133
133
  Place the most selective filter first to reduce the result set early:
134
134
 
135
- ```
135
+ ```text
136
136
  Good: WHERE Id = :recordId AND Status = 'Active'
137
137
  Bad: WHERE Status = 'Active' AND Id = :recordId
138
138
  ```
@@ -141,7 +141,7 @@ Bad: WHERE Status = 'Active' AND Id = :recordId
141
141
 
142
142
  Limit relationship traversal to 2 levels for performance:
143
143
 
144
- ```
144
+ ```text
145
145
  Good: Account.Owner.Name (1 level)
146
146
  Bad: Account.Parent.Parent.Parent.Owner.Name (3+ levels)
147
147
  ```
@@ -150,7 +150,7 @@ Bad: Account.Parent.Parent.Parent.Owner.Name (3+ levels)
150
150
 
151
151
  Always set a LIMIT on Extract queries unless the consuming component guarantees a bounded input:
152
152
 
153
- ```
153
+ ```text
154
154
  LIMIT 200 -- Standard batch size
155
155
  LIMIT 2000 -- Maximum for most UI scenarios
156
156
  LIMIT 10000 -- Absolute maximum, use only with pagination
@@ -189,7 +189,7 @@ When mapping fields that may be null:
189
189
 
190
190
  Extract supports parent-to-child relationship queries:
191
191
 
192
- ```
192
+ ```text
193
193
  Object: Account
194
194
  Fields: Name, Industry
195
195
  Child Relationship: Contacts (Contact)
@@ -212,7 +212,7 @@ Output structure:
212
212
 
213
213
  Extract supports child-to-parent traversal via dot notation:
214
214
 
215
- ```
215
+ ```text
216
216
  Object: Contact
217
217
  Fields: FirstName, LastName, Account.Name, Account.Industry
218
218
  ```