SetupAuditTrail

Represents changes you or other admins made in your org’s Setup area for at least the last 180 days.

SetupAuditTrail is not a supported standard controller. Using SetupAuditTrail as a standard controller in a Visualforce page results in an error.

You can use SOQL joins to get the information you need more quickly. For example, running SELECT CreatedBy.Name FROM SetupAuditTrail LIMIT 10 returns the first and last names of the last 10 people to make changes in Setup.

Introduced in API version 15.0.

query(), retrieve(), count(), SELECT count(Id) FROM SetupAuditTrail

  • Type: string
  • Properties: Filter, Group, Sort
  • Description: The category of the change made in Setup. For example, a value of PermSetCreate indicates that an administrator created a permission set. The Display field contains more specific information.
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 65.0
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 45.0
  • Description: The context under which the Setup change was made. For example, if Einstein uses cloud-to-cloud services to make a change in Setup, the value of this field is Einstein.
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 45.0
  • Description: Reserved for future use.
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 35.0
  • Description: The Login-As user who executed the action in Setup. If a Login-As user didn’t perform the action, this field is blank.
  • Type: string
  • Properties: Nillable, Sort
  • Description: The full description of changes made in Setup. For example, if the Action field has a value of PermSetCreate, the Display field has a value like “Created permission set MAD: with user license Salesforce.”
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 40.0
  • Type: string
  • Properties: Group, Nillable, Sort
  • Description: The section in the Setup menu where the action occurred. For example, Manage Users or Company Profile.