---
title: "#soql articles | Hashnode"
description: "Explore 10 articles tagged #soql on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/soql"
---

Tag

# #soql

10 posts · 3 followers

[Richard C](https://hashnode.com/@ailstudio) · [Nov 10](https://hashnode.com/posts/check-a-salesforce-contact-export-after-a-load-orphans-duplicate-external-ids-and-picklist-mismatches/6af2725e4e969c99b1167d22)

### [Check a Salesforce Contact export after a load: orphans, duplicate External IDs, and picklist mismatches](https://ailstudio.hashnode.dev/check-a-salesforce-contact-export-after-a-load-orphans-duplicate-external-ids-and-picklist-mismatches?utm_source=hashnode&utm_medium=feed)

Check Salesforce Contact and Account exports after a load for orphans, duplicate External IDs, and bad picklist values, using a spreadsheet and SOQL.

7 min read · [ailstudio.hashnode.dev](https://ailstudio.hashnode.dev/check-a-salesforce-contact-export-after-a-load-orphans-duplicate-external-ids-and-picklist-mismatches?utm_source=hashnode&utm_medium=feed)

[Richard C](https://hashnode.com/@ailstudio) · [Nov 9](https://hashnode.com/posts/how-to-find-orphan-contacts-after-a-salesforce-migration-accountid-is-blank/6af204238828320faee2f218)

### [How to find orphan Contacts after a Salesforce migration (AccountId is blank)](https://ailstudio.hashnode.dev/how-to-find-orphan-contacts-after-a-salesforce-migration-accountid-is-blank?utm_source=hashnode&utm_medium=feed)

After a Salesforce migration, find Contacts with a blank AccountId using SOQL, export them, and decide how to attach or leave them before go-live.

6 min read · [ailstudio.hashnode.dev](https://ailstudio.hashnode.dev/how-to-find-orphan-contacts-after-a-salesforce-migration-accountid-is-blank?utm_source=hashnode&utm_medium=feed)

[Richard C](https://hashnode.com/@ailstudio) · [Nov 2](https://hashnode.com/posts/how-to-audit-contact-account-parents-after-a-salesforce-migration-with-soql/6ae8c7649138a4fcebcaba7f)

### [How to Audit Contact–Account Parents After a Salesforce Migration with SOQL](https://ailstudio.hashnode.dev/how-to-audit-contact-account-parents-after-a-salesforce-migration-with-soql?utm_source=hashnode&utm_medium=feed)

Find Contacts on the wrong Account after a Salesforce migration: SOQL queries that audit Contact-Account parents through a stable external ID.

8 min read · [ailstudio.hashnode.dev](https://ailstudio.hashnode.dev/how-to-audit-contact-account-parents-after-a-salesforce-migration-with-soql?utm_source=hashnode&utm_medium=feed)

[Kingsley Mgbams](https://hashnode.com/@kingsleymgbams) · [Oct 18](https://hashnode.com/posts/winter-27-soql-formula-beta/6ad4b11ef5e5f28b6ac27adc)

### [Winter ’27: Simplify SOQL Queries with FORMULA() (Beta)](https://kingsleymgbams.hashnode.dev/winter-27-soql-formula-beta?utm_source=hashnode&utm_medium=feed)

Perform arithmetic comparisons between fields directly in SOQL WHERE clauses without creating additional formula fields.

4 min read · [kingsleymgbams.hashnode.dev](https://kingsleymgbams.hashnode.dev/winter-27-soql-formula-beta?utm_source=hashnode&utm_medium=feed)

[SapotaCorp](https://hashnode.com/@sapotacorpvn) · [May 24](https://hashnode.com/posts/soql-inside-loops-the-single-most-common-governor-limit-cause/6a127b6fddd318bf23bcfd31)

### [SOQL Inside Loops: The Single Most Common Governor Limit Cause](https://sapotacorpvn.hashnode.dev/soql-inside-loops-the-single-most-common-governor-limit-cause?utm_source=hashnode&utm_medium=feed)

Apex limits 100 SOQL queries per synchronous transaction. The 101st query throws and rolls back the whole operation. Almost every Salesforce org has at least one trigger that hits this. The refactor is mechanical and the test that catches i

6 min read · [sapotacorpvn.hashnode.dev](https://sapotacorpvn.hashnode.dev/soql-inside-loops-the-single-most-common-governor-limit-cause?utm_source=hashnode&utm_medium=feed)

[SapotaCorp](https://hashnode.com/@sapotacorpvn) · [May 24](https://hashnode.com/posts/soql-selectivity-avoiding-full-table-scans-on-million-row-objects/6a127b11fd145682d6cda862)

### [SOQL Selectivity: Avoiding Full Table Scans on Million-Row Objects](https://sapotacorpvn.hashnode.dev/soql-selectivity-avoiding-full-table-scans-on-million-row-objects?utm_source=hashnode&utm_medium=feed)

A query that runs in 200ms against 100K records can run for 30 seconds against 5M records. The difference is selectivity. The fix is index design, query shape, and a few patterns that keep Apex fast as the org grows.

7 min read · [sapotacorpvn.hashnode.dev](https://sapotacorpvn.hashnode.dev/soql-selectivity-avoiding-full-table-scans-on-million-row-objects?utm_source=hashnode&utm_medium=feed)

[SHARIQUE KALAM](https://hashnode.com/@shariquekalam) · [Aug 25, 2025](https://hashnode.com/posts/query-entitydefinition/68ac9cfc6b8f9013b0543a91)

### [Query EntityDefinition](https://query-entitydefinitionsobjects.hashnode.dev/query-entitydefinition?utm_source=hashnode&utm_medium=feed)

To find all active sObjects in your Org!

3 min read · [query-entitydefinitionsobjects.hashnode.dev](https://query-entitydefinitionsobjects.hashnode.dev/query-entitydefinition?utm_source=hashnode&utm_medium=feed)

[Harsh Verma](https://hashnode.com/@sforcedev) · [Jul 29, 2024](https://hashnode.com/posts/simplifying-polymorphic-queries-in-soql-with-the-typeof-operator/66a7d23d0d39a0040ba7599c)

### [Simplifying Polymorphic Queries in SOQL with the TYPEOF Operator](https://forcedev.hashnode.dev/simplifying-polymorphic-queries-in-soql-with-the-typeof-operator?utm_source=hashnode&utm_medium=feed)

In Salesforce Object Query Language (SOQL), polymorphic relationships enable a field to reference multiple types of records. To handle these dynamic references effectively, SOQL provides the 'TYPEOF' operator, allowing you to specify different fields...

2 min read · [forcedev.hashnode.dev](https://forcedev.hashnode.dev/simplifying-polymorphic-queries-in-soql-with-the-typeof-operator?utm_source=hashnode&utm_medium=feed)

[Prakash Das](https://hashnode.com/@prakshh) · [Jul 2, 2024](https://hashnode.com/posts/advanced-soql-queries-for-salesforce-metadata/6683a814c86ac0dc747b989c)

### [Advanced SOQL Queries for Salesforce Metadata](https://prakshh.hashnode.dev/advanced-soql-queries-for-salesforce-metadata?utm_source=hashnode&utm_medium=feed)

Unlock the power of advanced Salesforce queries to master metadata and data models. Enhance your SOQL skills with our expert guide. Happy querying!

2 min read · [prakshh.hashnode.dev](https://prakshh.hashnode.dev/advanced-soql-queries-for-salesforce-metadata?utm_source=hashnode&utm_medium=feed)

[neelam rakesh](https://hashnode.com/@rakeshneelam) · [May 11, 2024](https://hashnode.com/posts/building-a-dynamic-soql-query-builder-in-apex/663f3533df1dd7adf85cc32b)

### [Building a Dynamic SOQL Query Builder in Apex](https://rakeshneelam.hashnode.dev/building-a-dynamic-soql-query-builder-in-apex?utm_source=hashnode&utm_medium=feed)

Learn to create a dynamic SOQL query builder in Salesforce Apex for flexible, reusable queries. A step-by-step guide is included.

5 min read · [rakeshneelam.hashnode.dev](https://rakeshneelam.hashnode.dev/building-a-dynamic-soql-query-builder-in-apex?utm_source=hashnode&utm_medium=feed)
