Loading
Safety Cloud
목차
필터 선택

          결과 없음
          결과 없음
          몇 가지 검색 팁

          키워드의 맞춤법을 확인하십시오.
          더 일반적인 검색 용어를 사용하십시오.
          필터 수를 줄여 검색 범위를 확장하십시오.

          전체 Salesforce 도움말 검색
          Create Consent Records with an Apex Job for Customer Health Verification Form

          Create Consent Records with an Apex Job for Customer Health Verification Form

          With a scheduled Apex job, you can regularly create consent records for the COVID-19 health verifications that are generated after a customer completes the COVID-19 health verification form. Simply schedule the job, and it runs at the specified time when new health verification records are created.

          The job uses the schedulable class AsyncConsentRecordCreatorto create the consent records for the Health Verification records. 

          Each batch performs these actions on health verification records:

          • Fetch Health Verification records with IndividualId__c = null..
          • If the record has HasNotificationConsent__c = true:
            1. Create an Individual record.
            2. Create a Contact Type Consent record.
            3. Update the Health Verification record with IndividualId__c.

          To create a scheduled Apex job:

          1. From Setup, in the Quick Find box, enter Apex Classes and then select Apex Classes.
          2. Click Schedule Apex.
          3. Enter the job name. We recommend Consent Record Creation, so you know what kind of record the job creates.
          4. Enter AsyncConsentRecordCreator in the search bar and select it.
          5. Specify the start and end dates for the Apex scheduled class. If you specify a single day, the job runs only once.
          6. Specify a preferred start time. The exact start time depends on service availability.
          7. Save your changes.

          After the job is completed, you can see its information on the Apex Jobs page, such as whether it passed or failed, how long it took to process, and the number of records processed.

           
          로드 중
          Salesforce Help | Article