Loading
ただいま大変多くのお問い合わせをいただいており、ご連絡までにお時間を頂戴しております続きを読む
Safety Cloud
目次
絞り込み条件を選択

          結果がありません
          結果がありません
          検索のヒントをいくつかご紹介します

          キーワードの入力ミスがないか確認する。
          より一般的な検索語を使用する。
          絞り込み条件を減らして、検索範囲を広げる。

          Salesforce ヘルプ全体を検索
          Create Consent Records with an Apex Job for Vaccine Eligibility

          Create Consent Records with an Apex Job for Vaccine Eligibility

          With a scheduled Apex job, you can regularly create consent records for the leads that are generated from your vaccine eligibility sign-up form. Simply schedule the job, and it runs at the specified time when you have new leads from the sign-up form.

          The job uses the schedulable class AsyncConsentRecordCreator to create the consent records for the leads.

          Each batch performs these actions on the lead records:

          • Fetch Lead records with WasIndividualCreated__c = false.
          • If the record has HasNotificationConsent__c = true:
            1. Create an Individual record.
            2. Create a Contact Type Consent record.
            3. Update the lead record with WasIndividualCreated__c = true and link it to the Individual record.
          1. From Setup, enter Apex Classes in the Quick Find box, 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