Requirements
Available In: Salesforce Connector
Kantata User Permission: Account Administrator
Overview
Salesforce is highly customizable and allows you to create complex logic and processes based on your needs. As processes get executed, errors can come in different forms and can be challenging to address. The Salesforce's Debug Logs feature helps us to identify the root cause of problems.
NOTE
Any Salesforce Administrator can enable and access logs, but we strongly recommend that the installer of the Mavenlink for Salesforce package do so in order to avoid any user permission issues during the debug process.
How to Enable Logging
- Log in to Salesforce.
- Select the Mavenlink Configuration tab. The Mavenlink Package Configuration page opens.
- In the Integration Options subtab, click Edit.
- In the Logging Settings section, select Internal in the Logging Status field.
- Enter 9 in the Logging Level field.
- Enter 2 in the Log Entry Longevity field.
- Click Save. Logging function actions will now be recorded.
TIP
During testing, it's best practice to check the status of actions performed before looking at them in the Reports.
How to Check Action Statuses
- Log in to Salesforce.
- In the top-right corner of the page, select the Actions icon and then select Setup. The Setup page opens.
- In the left-hand Quick Find box, search for apex jobs.
- Select the Apex Jobs that appears in the search results. A list of performed actions and their details appear on the page.
How to View Mavenlink Debug Log Reports
- In Salesforce, open the Reports tab.
- Open the Mavenlink Reports (Installed Package: Mavenlink for Salesforce) folder and click on Mavenlink Log Entries.
- All log entries display. To export, click Export Details.
- Leave Export File Encoding as is.
- In the Export File Format drop-down, select whether you want the report in an Excel or CSV format.
- Click Export. The report exports and opens.
TIP
It's recommended to deactivate debug logs again after exporting the ones you need as Salesforce has Data Storage Limits and logging consumes significant storage.
How to Deactivate and Delete Mavenlink Debug Logs
- Navigate to your profile in Salesforce and select Developer Console.
- Click the Debug drop-down and then select the Open Execute Anonymous Window.
- Enter the following Apex Code into the Enter Apex Code modal:
List<mavenlink__Mavenlink_Log__c> deleteRecords= [select id from mavenlink__Mavenlink_Log__c limit 10000]; delete deleteRecords;
- Select Execute. The Mavenlink Debug Logs are deleted and deactivated, and a Success status displays In the bottom panel of the window.
Comments
0 comments
Please sign in to leave a comment.