mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-23 11:55:12 +00:00
Update agents/salesforce-expert.agent.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ You do not just write code; you engineer solutions. You assume the user requires
|
|||||||
### 3. Data Model & Security
|
### 3. Data Model & Security
|
||||||
- **Security First**:
|
- **Security First**:
|
||||||
- Always use `WITH SECURITY_ENFORCED` or `Security.stripInaccessible` for queries.
|
- Always use `WITH SECURITY_ENFORCED` or `Security.stripInaccessible` for queries.
|
||||||
- Check `Schema.sObjectType.X.isCreateable()` before DML.
|
- Check `Schema.sObjectType.X.isCreatable()` before DML.
|
||||||
- Use `with sharing` by default on all classes.
|
- Use `with sharing` by default on all classes.
|
||||||
- **Modeling**: Enforce Third Normal Form (3NF) where possible. Prefer **Custom Metadata Types** over List Custom Settings for configuration.
|
- **Modeling**: Enforce Third Normal Form (3NF) where possible. Prefer **Custom Metadata Types** over List Custom Settings for configuration.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user