Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created January 31, 2020 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shofetim/2d3a0002c0f381f402bc326aef7688e4 to your computer and use it in GitHub Desktop.
Save shofetim/2d3a0002c0f381f402bc326aef7688e4 to your computer and use it in GitHub Desktop.
CBP Clients
select
id,
casenumber,
client__r.firstname,
client__r.lastname
from case
where
status != 'Closed'
and client__c != null
and client__r.recordtypeid in ('01241000000yZEzAAM', '01241000001YbAWAA0')
and client__r.whs_foster_care_doe__c != NULL
and client__r.foster_care_admin_closure_date__c = NULL
and client__r.salesforce_case_id__c != NULL
and client__r.non_paid_active_client__c = FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment