제휴 배치 Apex 작업 실행
Developer Console에서 배치 Apex 작업을 실행하여 제휴 유형 설정, 상호 제휴 만들기, 계정과 상위 조직 간 기본 제휴 설정과 같은 작업을 자동화합니다. 배치 Apex 작업의 상태와 상태를 추적하고 필요한 경우 설정에서 종료합니다.
필수 Edition
| 지원 제품: Lightning Experience |
| 지원 제품: Life Sciences Cloud, Customer Engagement용 Life Sciences Cloud 추가 기능 라이센스, Life Sciences Customer Engagement 관리형 패키지가 포함된 Enterprise 및 Unlimited Edition. |
| 필요한 사용자 권한 | |
|---|---|
| Life Sciences Cloud 데이터 만들기, 편집 및 삭제: | 생명 과학 상업 관리자 권한 집합 |
AffiliationDataLoadProcessorBatcha 배치 작업을 실행하기 전에 HardAffiliationHandler 및 AffiliationReciprocalHandler 트리거 처리기를 해제합니다. AccountPrimaryAffiliationBatch 배치 작업을 실행하기 전에 HealthcareProviderAffiliationHandler 트리거 처리기를 해제합니다.
이 Apex 코드를 사용하여 배치 Apex 작업을 실행합니다.
Map<String, Object> paramMap = new
Map<String, Object>{ 'batchName' => '{your_batch_name}', 'batchSize' =>
'{your_batch_size}', 'isCreatedByCurrentUser' => '{your_is_created_by_current_user_boolean}',
'createdAfter' => '{your_datetime}', 'whereClause' => '{your_where_clause_string}' }; // Call
Boolean result =
(Boolean)(lsc4ce.LifeScienceApi.getInstance(lsc4ce.LifeScienceApi.Command.AffiliationBatchJob).execute(paramMap));
System.debug('Result: ' + result);
batchSize, createdAfter, isCreatedByCurrentUser 및 whereClause 매개 변수는 선택 사항입니다. 일괄 Apex 작업 실행 방법에 대한 지침은 익명 Apex 코드 실행을 참조하십시오.
예
Map<String, Object> paramMap = new Map<String, Object>{ 'batchName' =>
'AffiliationDataLoadProcessorBatch', 'batchSize' => 200, 'isCreatedByCurrentUser' => true,
'createdAfter' => Datetime.newInstance(2025, 8, 1, 0, 0, 0), 'whereClause'=>
'AffiliationStrengthType = \'High\'' }; // Call Boolean result =
(Boolean)(lsc4ce.LifeScienceApi.getInstance(lsc4ce.LifeScienceApi.Command.AffiliationBatchJob).execute(paramMap));
System.debug('Result: ' + result);이 코드는 AffiliationDataLoadProcessorBatch 작업을 실행하고 배치 크기를 200으로 설정합니다. 로그인한 사용자가 2025년 8월 1일 0시에 만든 레코드만 처리합니다. 제휴 강도 유형이 높은 레코드를 실행합니다.
이 기사를 통해 문제를 해결했습니까?
개선을 위한 의견을 보내주세요.

