Skip to content

Instantly share code, notes, and snippets.

@niavesper
Created March 21, 2021 23:09
Show Gist options
  • Save niavesper/bb755800e1d26dbb63b067aa511d457a to your computer and use it in GitHub Desktop.
Save niavesper/bb755800e1d26dbb63b067aa511d457a to your computer and use it in GitHub Desktop.
public class getCaseSysChanges {
public Id caseId {get;set;}
public List<System_Change__c> getSysChanges()
{
List<System_Change__c> sysChanges;
sysChanges = [SELECT Name, Type_of_Change__c, Target_Completion_Date__c, Description_of_Change__c FROM System_Change__c WHERE
RecordType.DeveloperName ='MarCom_Secondary_Sys_Change'
AND Case__r.Id =: caseId];
return sysChanges;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment