Loading
메일 전송 도메인 확인 상태 안내더 많이 읽기
Volunteers for Salesforce Managed Package
목차
필터 선택

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

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

          전체 Salesforce 도움말 검색
          Configure Scheduling of Recurring Jobs and Volunteers

          Configure Scheduling of Recurring Jobs and Volunteers

          Automatic scheduling of Jobs and volunteers into the future saves a ton of repetitive data entry.

          Say you have 10 volunteer slots for meal delivery every day, from 9 a.m. to 3 p.m., in two 3-hour Shifts. You have a set of volunteers who reliably fill those Shifts. Set up the Volunteers for Salesforce batch job to run periodically and automatically create recurring Shifts and assign recurring volunteers to them.

          Set Up Automatic Creation of Recurring Shifts and Volunteers

          Use batch jobs to automatically create records for you, including those that track shifts and volunteers.

          V4S comes with a batch job that you can run on a set schedule. For example, set up the batch job to run once a week and automatically create Shift records for any active Job Recurrence Schedules, and assign any recurring volunteers to those shifts. Each time the batch runs, it generates new records for a few months out (or for whatever time period you've specified in the Recurring Job Future Months custom setting) and updates existing records to reflect changes in event scheduling or volunteer availability.

          1. From Setup, enter Apex in the Quick Find box, then select Apex Classes.
          2. Click Schedule Apex.
          3. Give the job a name, such as Schedule Recurrences.
          4. For Apex Class, search for and select VOL_BATCH_Recurrence.
            Search for the VOL_BATCH_Recurrence Apex class
          5. Specify the job frequency, such as Sundays at 1 a.m.
          6. Set an end date well into the future.
          7. Save your changes.

          Now the batch job runs automatically on this schedule, creating recurring shifts and volunteers for active Job Recurrence Schedules.

          Control How Far in the Future to Schedule Shifts

          Out-of-the-box, the Volunteers for Salesforce batch job schedules recurring Jobs—and assigns recurring volunteers to them—four months into the future. Adjust this timeframe as needed.

          Keep in mind that the more months you schedule out, the more data needs to be crunched when the scheduling batch job runs. Salesforce sets limits on how much processing power your batch jobs can consume, so keep it to a reasonable number.

          For limits information, see Apex Governor Limits in the Salesforce Developer Documentation.

          1. From Setup, enter Custom Settings in the Quick Find box, then select Custom Settings.
          2. Next to Volunteers Settings, click Manage.
          3. Click Edit. If there are no Custom Settings values configured, click New.
          4. Update the value of the Recurring Job Future Months field to the desired number of months.
          5. Save your changes.

          Now, every time the batch job runs (according to the frequency you specified when creating the batch job), it processes data for your chosen time period.

          Manually Run Batch Processing of Recurring Jobs and Volunteers

          The scheduled recurrence batch job runs automatically after you've scheduled it. If you want scheduled recurrences processed at other times, between scheduled runs, you can start the process manually.

          1. Click the App Launcher ( App Launcher icon ).
          2. Find and then click Process Recurrence Schedules.
          3. Click Run Batch.

            The page confirms when processing is finished.

            Confirmation of completed batch processing of recurrence schedules
          Note
          Note You may see this error after you run the batch: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please enter a valid URL: [External_Signup_Url__c],. This error occurs if your External Signup Url fields on the Volunteer Job object don't start with http, https, or mailto. To resolve this issue, fix the problematic External Signup Url values and then run the batch. Alternatively, you can temporarily deactivate the ValidateExternalSignupUrl validation rule on the Volunteer Job object and run the batch, but be sure to activate the validation rule once you're finished.
           
          로드 중
          Salesforce Help | Article