@salesforce/afv-skills 1.6.1 → 1.6.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: generating-experience-lwr-site
|
|
3
|
-
description: "Creates, modifies, or manages Salesforce Experience Cloud LWR sites via DigitalExperience metadata. Always trigger when users mention Experience sites, LWR sites, DigitalExperience, Experience Cloud, community sites, portals, creating pages, adding routes, views, theme layouts, branding sets, previewing sites, or any DigitalExperience bundle work. Also use when users mention specific content types like sfdc_cms__route, sfdc_cms__themeLayout, etc. or when troubleshooting site deployment."
|
|
3
|
+
description: "Creates, modifies, or manages Salesforce Experience Cloud LWR sites via DigitalExperience metadata. Always trigger when users mention Experience sites, LWR sites, DigitalExperience, Experience Cloud, community sites, portals, creating pages, adding routes, views, theme layouts, branding sets, previewing sites, or any DigitalExperience bundle work. Also use when users mention specific content types like sfdc_cms__route, sfdc_cms__themeLayout, etc. or when troubleshooting site deployment. ALWAYS trigger for ANY guest sharing rule (metadata type sharingGuestRules) creation/modification, guest user access, sharing records to guest users, or when user provides a guest user ID (15 or 18 characters starting with 005)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Experience LWR Site Builder
|
|
@@ -29,6 +29,7 @@ When working with Experience LWR sites:
|
|
|
29
29
|
- Adding pages (routes + views)
|
|
30
30
|
- Configuring LWC components, layouts, themes, or branding styles
|
|
31
31
|
- Setting up guest user access (public sites)
|
|
32
|
+
- Creating or modifying **guest sharing rules** (`sharingGuestRules`) for any Salesforce object (Account, Case, Contact, etc.) — including when the user refers to a "Site Guest User" username or any guest user by ID
|
|
32
33
|
- Troubleshoot deployment errors related to Experience LWR Sites
|
|
33
34
|
|
|
34
35
|
**Supported Template**: Build Your Own (LWR) - `talon-template-byo`
|
|
@@ -100,6 +101,7 @@ Before doing anything, you **MUST ALWAYS** load them first if they match user in
|
|
|
100
101
|
- [configure-content-brandingSet.md](docs/configure-content-brandingSet.md) - Branding with color patterns/WCAG
|
|
101
102
|
- [handle-component-and-region-ids.md](docs/handle-component-and-region-ids.md) - **UUID generation (CRITICAL)** for component and region ids used in views and themeLayout.
|
|
102
103
|
- [handle-ui-components.md](docs/handle-ui-components.md) - Component discovery, schemas, insertion, configuration
|
|
104
|
+
- [configure-guest-sharing-rules.md](docs/configure-guest-sharing-rules.md) - **Guest sharing rules** (`sharingGuestRules`) for public sites — use for any request involving "guest sharing rule", "Site Guest User", or sharing object records with unauthenticated visitors
|
|
103
105
|
|
|
104
106
|
## Common Workflows
|
|
105
107
|
|
|
@@ -185,6 +187,10 @@ Before doing anything, you **MUST ALWAYS** load them first if they match user in
|
|
|
185
187
|
}
|
|
186
188
|
```
|
|
187
189
|
|
|
190
|
+
### Configuring Guest User Sharing Rules
|
|
191
|
+
|
|
192
|
+
- [ ] MUST read [configure-guest-sharing-rules.md](docs/configure-guest-sharing-rules.md) and follow all steps there.
|
|
193
|
+
|
|
188
194
|
### Retrieving Site Preview and Builder URLs After Deployment
|
|
189
195
|
|
|
190
196
|
**Use when** user requests to preview a site, access a builder site, or after successfully deploying a site.
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# Guest User Sharing Rules (Public Sites Only)
|
|
2
2
|
|
|
3
|
-
**Use when** the user
|
|
4
|
-
|
|
3
|
+
**Use when** the user asks to create or modify a guest sharing rule, mentions a username containing "Guest User" or "Site Guest User" (e.g. "ZenLease Site Guest User"), or wants to share object records with unauthenticated visitors.
|
|
4
|
+
|
|
5
|
+
## Steps
|
|
6
|
+
|
|
7
|
+
1. **Resolve the guest user identity**: If the user provides a username like "ZenLease Site Guest User", use it directly as the `<guestUser>` value (`CommunityNickname`). If a user ID is provided (e.g. `005AAC00003f8EP`), query the org to get the `CommunityNickname` first.
|
|
8
|
+
2. **Check for existing file**: Look for `sharingRules/{ObjectName}.sharingRules-meta.xml` locally. If missing, retrieve it from the org before editing.
|
|
9
|
+
3. **Generate the rule**: Follow the XML example and critical requirements below. Never use `sharingCriteriaRules` or `<role>`/`<group>` for guest rules.
|
|
10
|
+
|
|
11
|
+
If `sharingRules` metadata is not available locally in `force-app/main/default/sharingRules`, retrieve it from the org before creating new rules.
|
|
5
12
|
|
|
6
13
|
## Retrieve Full SharingRules Schema
|
|
7
14
|
|