Skip to content

Instantly share code, notes, and snippets.

@peterlyeung
Created February 2, 2026 23:52
Show Gist options
  • Select an option

  • Save peterlyeung/38e9898e9ba800806fb3fda87232ade1 to your computer and use it in GitHub Desktop.

Select an option

Save peterlyeung/38e9898e9ba800806fb3fda87232ade1 to your computer and use it in GitHub Desktop.
Call LSC4CE Affiliation batch process within lsc4ce namespace
Map<String, Object> paramMap = new Map<String, Object>{
'batchName' => 'AffiliationDataLoadProcessorBatch',
'batchSize' => 200,
'isCreatedByCurrentUser' => false,
'createdAfter' => Datetime.now().addDays(-30),
'whereClause' => ''
};
Boolean result = (Boolean)(lsc4ce.LifeScienceApi.getInstance(lsc4ce.LifeScienceApi.Command.AffiliationBatchJob).execute(paramMap));
System.debug('Result: ' + result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment