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 using-salesforce-archiveArchiveActivityArchiveActivity/platform/data-resilience/archive/ArchiveActivityArchiveActivityArchivePolicyDefinitionArchiveActivitysobjectNamesobjectNamerequestIdArchiveActivity8qv…reportTypeTypeTrustedServicesArchiveTrustedServicesArchiveBthasTrustedServicesArchiveOrgPermissions.TrustedServicesArchive || TrustedServicesArchiveBt| Operation | User permission required |
|---|---|
| |
| |
| |
| |
| |
| |
| |
Source of truth: the Connect API resource classes in→trusted-services-archive-connect-implguards →TrustedServicesArchiveSdkImpl. NoteTrustedServicesArchive.accessChecks.xmlroutes throughsearch-archived-records(gated byperformArchiverGlobalSearch=canRunArchiveSearch); the separate Apex-SDKViewSearchPagemethod is gated bysearchArchivedRecords(), but the Connect API search endpoint does not use it.ViewArchivedRecords
references/connect-api-operations.mddateRangesisSuccessurl: nullreferences/archive-activity-entity.mdArchiveActivityArchiveActivityexamples/monitor-failed-jobs.mdsobjectNamedateRanges{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 | The controller rejects an unfiltered request 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 |
| Never use the deprecated lookups | |
| 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 |