---
schema_version: "1"
id: a710721b815607b9c061fcefda86341920e0a6beebe9b6471b7852d65bd28a72
title: Activate and Use ApexGuru for Apex Code Analysis
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/apexguru_workflow.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.apexguru_workflow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e00fcc7258992c5e05613977ffdd494a9fa82e1161c46ced03b26a3f6a89fda2
description: Learn how to activate ApexGuru and analyze your Salesforce org’s Apex code securely using the Einstein Trust Layer.
products:
  - Cross Cloud
release: "264"
---
# Activate and Use ApexGuru for Apex Code Analysis

Learn how to activate ApexGuru and analyze your Salesforce org’s Apex code securely using the Einstein Trust Layer.

![ApexGuru workflow diagram for code analysis and recommendations.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-scalability-264-0-0-production-enus/18f3af65-f4ea-4406-9c30-319b9afa03cd/scalability/images/apexguru_workflow_image.png)

1. Review the legal terms for ApexGuru and click **I Agree** to activate the service.
2. Allow ApexGuru to securely retrieve your org’s Apex code in read-only mode for dynamic grounding.
3. Let the Einstein Trust Layer provide data masking, secure gateway, and zero data retention during the analysis process.
    1. ApexGuru scans and reviews the uploaded Apex code to identify inefficiencies and areas of optimization.
        
        These hotspots and performance bottlenecks can impact overall performance.
    2. A Salesforce-owned LLM within the Einstein Trust Layer detects common antipatterns in the code and prioritizes recommendations based on their potential impact.
    3. Ensure that the data is immediately deleted after the analysis is complete.
4. Allow ApexGuru to retrieve data while maintaining the confidentiality and integrity of the Apex code during processing and transmission.
5. Review the recommendations generated by the model in the ApexGuru interface for further analysis.

You have securely activated ApexGuru, analyzed your Apex code, and received prioritized recommendations for optimization in your ApexGuru interface.