Slaesforce FAQ

how to save query results in salesforce developer console

by Marisa Berge Published 2 years ago Updated 2 years ago
image

The Developer Workbench will allow you to, among other things, build SOQL queries and save the results as CSV: https://workbench.developerforce.com/login.php Save it. Now with one click it will download console results into csv file. (Tested in Chrome)

Right-click on the query result and select Inspect.
  1. Look for the table tag, then do "Copy element".
  2. Open Excel and Paste to get the result.
Jan 7, 2021

Full Answer

How to add ID field in Salesforce developer console?

Select the fields by hold the Ctrl key (and Shift key) for Windows users, then hit the Query button, Id field will be auto-added. Click the Execute button, developer console will open a tab with the query result.

How can I speed up my soql queries?

The Query Plan tool in the Developer Console can help speed up SOQL queries done over large volumes. Use the Query Plan tool to optimize and speed up queries done over large volumes. Set 'Enable Query Plan' to TRUE. Once enabled in the Developer Console, you can access the Query Plan Tool in the ' Query Editor ' tab of the console.

How do I run a query from the developer console?

Click the Execute button, developer console will open a tab with the query result. This is tested in Chrome and chromium-based web engines (such as Edge and Opera), so not sure for Firefox and Safari.

How to export the soql query results as CSV?

The FuseIT SFDC Explorer has an option to export SOQL query results as CSV. It can export the SOQL query results as CSV. This will handle paging through all the query results for you.

image

How do I save data from developer console in Salesforce?

Right click on div and select on Copy > Copy Element. Now you have copied all the data. Now you can easily paste it into Excel or CSV to store the data. We can also export test class coverage using this.

How do I copy results in developer console?

Here is a simple way:Run your query in query builder.Hit F-12 and click on any row of the query builder's result.In developer console switch from tr to table.Copy table's html and paste into notepad.save notepad as html and open it in a browser.you can easily copy your desired rows or whole result set from here.

How do I export a query result from Salesforce workbench?

To export data from Workbench, you need to opt for Bulk CSV in the “View As” options and run your query. Once it has run, you can download the query results by clicking on the download icon next to the Batch ID.

How do I download a log from the Salesforce Developer Console?

To download a copy of the selected log as a text file, click File | Download Log. The default name for the file is apex. log . To prevent logs from loading when you open the Developer Console, go to Help | Preferences and set Prevent Logs on Load to true .

Who can use data Loader Salesforce?

Admins, developers, and consultants can use a data loader to insert and mass delete for 50,000+ files in minutes. There are many third-party data loading apps on Salesforce AppExchange, in addition to the de facto Salesforce Data Loader.

How do I export a query in Salesforce?

Export DataOpen the Data Loader.Click Export. ... Enter your Salesforce username and password, and click Log in.When you're logged in, click Next. ... Choose an object. ... Select the CSV file to export the data to. ... Click Next.Create a SOQL query for the data export.More items...

Can you export data from Salesforce?

You can easily export data from Salesforce, either manually or on an automatic schedule. The data is exported as a set of comma-separated values (CSV) files. Data export tools provide a convenient way to obtain a copy of your Salesforce data, either for backup or for importing into a different system.

How do I automate export data in Salesforce?

Method 1: Automate Salesforce Data Export Using Salesforce Built-In Export FeatureClick on “Setup” enter “Data Export” in the “Quick Find” box, then select “Data Export” and “Export Now” or “Schedule Export”. ... Select the intended encoding for your export file.More items...•

How do I view logs in Salesforce developer console?

To open the selected log in the Log Inspector, select File | Open Log or double-click the log on the Logs tab. Use the Log Inspector to review a debug log, evaluate Apex code, track DML, monitor performance, and more. To open the selected log in a text editor, select File | Open Raw Log.

How do you get the developer console log?

View and save your browser console logsOpen the main Chrome menu.Select More Tools > Developer Tools.Depending on which logs you need, you'll select the Network or Console Tab to get the logs you need.

How do I enable logs in developer console?

If you just need a quick log for the current user, the easiest way is to simply click the top gear icon and then pop open the developer console and click on the Logs tab which will automatically begin log collection.

Thursday, January 7, 2021

In case you have no access to the workbench, can we download the query result from the Developer Console?

Salesforce: Export Query Result from Developer Console

In case you have no access to the workbench, can we download the query result from the Developer Console?

Reasons to use the Query Plan Tool

Use this tool to check the Query Plan for any SOQL queries that execute slowly. It will provide you with insight on the different plans and should you have some of the filters indexed, provide the cost of using the index compared to a full table scan.

What does it all mean?

The Query Plan Tool will show a list of available plans that our Query Optimizer can use for the query provided and will be arranged by cost ascending.

Indexed field does not appear in the list of plans

If the query you provided contains an Indexed field in the filters, the plan will be shown for that field only if you are using a supported operation against that field.

Examples and how to interpret Query Plan results

The following examples uses 2 indexed fields. A checkbox ( InActiveAcc__c) and a Picklist ( Account_Hierarchy__c) on the Account sObject.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9