---
schema_version: "1"
id: 4af995e03ed3a1ca5ba97bcb83c2fadf9ce998ad5e36b6ad181dee8538ec0765
title: Create Occasion Access Settings
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/safety_cloud_occasion_access_settings.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.safety_cloud_occasion_access_settings.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 601dfb686022ce95e6fd076ae4956a582ad228f44da3c54a6b5963dda5722570
description: Use Occasion Access Settings to specify the date range for which the QR code is valid. Also use it to specify the type of test or vaccination combinations required for generating a QR code URL and adding it to the Health Verification record.
products:
  - Salesforce Platform
release: "264"
---
# Create Occasion Access Settings

Use Occasion Access Settings to specify the date range for which the QR code is valid. Also use it to specify the type of test or vaccination combinations required for generating a QR code URL and adding it to the Health Verification record.

Every time a user submits a form for Health Verification, Safety Cloud creates a Health Verification record. Safety Cloud compares information from the Health Verification record against the Occasion Access Settings to determine whether to generate a QR code that grants the user access to an event.

Occasion Access settings determine which Health Verification records trigger QR code generation and for how long the QR code remains valid. The time for which a QR code remains valid is formulated by a fixed date range or by an offset from the current date/time in minutes.

Occasion Access Settings work on form-based Health Verification records and Health Verification records from third-party integrations.

To create the Access Settings for an Occasion, complete these steps.

1. From the Occasion object, click **Related**.
2. From the Occasion Access Settings section, click **New.**
3. Enter an Occasion Access Setting Name. For example, Conference 3 day access.
4. Enter a Health Verification Method.
    
    The Health Verification method must correspond to a Health Verification Method in your Occasion Settings.
5. Enter a Verification Status. For example, Verified.
6. In the Verification Datetime field, enter safetycloud\_\_TestDateTime\_c.
7. Set a date time range for QR code generation in the Verification Datetime Range Start and Verification Datetime Range fields.
    
    The values that you specify in these two fields determine the window of time where the Health Verification record is considered for QR code generation.
8. Set a datetime range or a time in minutes for which the generated QR code remains valid.
    
    To set the time range for which the generated QR code remains valid, you can use the Access Offset field or the Access Start Datetime and Access End Datetime fields. You can’t use both.
    
    The Access Offset is represented in minutes. Consider using Access Offset for situations where access is required for a short time and is initiated as soon as the user’s health status is verified. For example, you can use the Access Offset for an Amazon delivery driver who needs access to your site for 30 minutes.
    
    ![Screenshot shoiwing Access Offset and Access Start and End Datetime fields](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-vaccine_cloud-264-0-0-production-enus/efba81cf-4df2-478b-9074-4524c9b354ed/vaccine_cloud/images/safety_cloud_occasion_access_offset.png)
9. Save your changes.

#### See Also

- [Create an Occasion](https://help.salesforce.com/s/articleView?id=service.safety_cloud_occasion_object_setup.htm&release=264.0.0&type=5 "Use the Occasion Object that comes with Safety Cloud to create Health Verification configurations specific to an event.")
- [Create an Occasion Setting](https://help.salesforce.com/s/articleView?id=service.safety_cloud_occasion_settings_setup.htm&release=264.0.0&type=5 "Use Occasion Settings to specify the details of the Health Verification form and the Health Verification records that Safety Cloud creates when a user submits the form.")
- [Set up a Digital Experience Site with the Health Verification Form](https://help.salesforce.com/s/articleView?id=service.vaccine_packages_digital_ex_site_setup_hv.htm&release=264.0.0&type=5 "The Safety Cloud Template package includes an LWC component that contains the Health Verification form. If you installed the Template Package, you must set up the Digital Experience to host the LWC component on an unauthenticated site so your users can access it.")