Loading...
Loading...
ALWAYS USE THIS SKILL for anything involving Salesforce Archive (also called Trusted Services Archive) — search, view, unarchive, analyze, mask, and erase (RTBF) archived records via the Archive Connect API, and reading archive job status from the ArchiveActivity object. TRIGGER when: user mentions Salesforce Archive, Trusted Services Archive, archive/unarchive records, ArchiveActivity, archive jobs, archive policy, archive analyzer, archived record search, archive storage, archive failure logs, right to be forgotten / RTBF on archived data, or masking archived PII — including phrasings like 'find records that were archived', 'restore archived data', 'why did the archive job fail', 'download the archive failure log', or 'monitor my archive jobs', AND even when they ask you to explain, give guidance, or write a runbook/doc about these topics rather than run code. SKIP when: the user wants generic data-export/backup unrelated to the Archive add-on, or wants to build the archive policy UI metadata.
npx skill4agent add forcedotcom/sf-skills platform-trust-archive-manageArchiveActivityArchiveActivity/platform/data-resilience/archive/ArchiveActivityArchiveActivityArchivePolicyDefinitionArchiveActivitysobjectNamesobjectNamerequestIdArchiveActivity8qv…reportTypeType| Operation | User permission required |
|---|---|
| |
| |
| |
| |
| |
| |
| |
references/connect-api-operations.mddateRangesisSuccessurl: nullreferences/archive-activity-entity.mdArchiveActivityArchiveActivityexamples/monitor-failed-jobs.md{method, path, body}sfreferences/connect-api-operations.mdsearch-archived-recordsunarchive-records/platform/data-resilience/archive/…/archive/search-archived-records/platform/data-resilience/archive/…/connectNOT_FOUND| Operation | Method + Path | Notes |
|---|---|---|
| search-archived-records | | requires |
| search next page | | stop when |
| search with sharing rules | | uses |
| unarchive-records | | |
| run-analyzer / report | | |
| forget / RTBF + status | | |
| mask + status | | |
| storage used | | |
| execution-detail / failed-records log | | query params |
sf/services/data/v67.0sobjectNamedateRanges{field, from, to}body.statusCodebody.isSuccessreferences/connect-api-operations.md| After this write | Confirm by |
|---|---|
| Poll |
| Re-run |
| Poll |
| Poll |
| Constraint | Rationale |
|---|---|
Search & unarchive require | An unfiltered request is rejected with "Search must be based on at least 1 field" — a full-object operation is never allowed. |
Date filters must be full ISO-8601 datetimes ( | A date-only value ( |
Search uses | They are genuinely different fields on the two endpoints; using the wrong shape silently drops the filter or 400s. |
Stop pagination when | Calling |
Log downloads need a real | The backend resolves the log by the activity record; a mismatched |
| Excluded objects are not retrievable | |
Query | |
| Issue | Resolution |
|---|---|
| Treating HTTP 201 as success | Several operations return 201 with a body-level outcome. Branch on |
| It is always |
| |
Log | |
Misreading | |
Expecting | It is not Flow-enabled ( |
| Hitting unarchive caps | Unarchive processes ≤1000 matched records per request and ≤50 requests/hour/org, and restores the whole archived hierarchy of each match. |
| RTBF/masking caps | |
ArchiveActivity| File | When to read |
|---|---|
| Before constructing any Archive Connect API call — full per-operation contracts, success signals, and limits |
| For any job-status / failure / progress / log task — |
| To follow an end-to-end monitoring flow: find failed/in-progress jobs, then download their logs |