mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-12 02:49:15 +08:00
feat: incorporate new guest user fix
This commit is contained in:
parent
9eab580a0c
commit
fd4b5be053
@ -18,25 +18,23 @@ Use the `get_metadata_api_context` MCP tool:
|
|||||||
```xml
|
```xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<SharingRules xmlns="http://soap.sforce.com/2006/04/metadata">
|
<SharingRules xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||||
<sharingGuestRules>
|
<sharingGuestRules>
|
||||||
<fullName>ShareAccountsWithSiteGuest</fullName>
|
<fullName>ShareAccountsWithSiteGuest</fullName>
|
||||||
<accessLevel>Read</accessLevel>
|
<accessLevel>Read</accessLevel>
|
||||||
<includeHVUOwnedRecords>false</includeHVUOwnedRecords>
|
<includeHVUOwnedRecords>false</includeHVUOwnedRecords>
|
||||||
<label>Share Accounts With Site Guest</label>
|
<label>Share Accounts With Site Guest</label>
|
||||||
<sharedTo>
|
<sharedTo>
|
||||||
<guestUser>[site developer name]</guestUser>
|
<guestUser>[site Guest User's nickname]</guestUser>
|
||||||
</sharedTo>
|
</sharedTo>
|
||||||
<criteriaItems>
|
<criteriaItems>
|
||||||
<field>Name</field>
|
<field>Name</field>
|
||||||
<operation>notEqual</operation>
|
<operation>notEqual</operation>
|
||||||
<value>null</value>
|
<value>null</value>
|
||||||
</criteriaItems>
|
</criteriaItems>
|
||||||
</sharingGuestRules>
|
</sharingGuestRules>
|
||||||
</SharingRules>
|
</SharingRules>
|
||||||
```
|
```
|
||||||
|
|
||||||
Refer to General Tip #1 to get the site developer name.
|
|
||||||
|
|
||||||
## Critical Requirements
|
## Critical Requirements
|
||||||
|
|
||||||
1. **SharedTo Element**: Must use `<guestUser>{siteName}</guestUser>` where `{siteName}` is the Network name (not URL path prefix).
|
1. **SharedTo Element**: Must use `<guestUser>{siteName}</guestUser>` where `{siteName}` is the Network name (not URL path prefix).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user