Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Automate Sample Limits for New Accounts

          Automate Sample Limits for New Accounts

          Define how sample limit templates are applied automatically to newly created healthcare professional (HCP) and healthcare organization (HCO) accounts.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.
          User Permissions Needed
          To enable trigger handlers: Life Sciences Commercial Admin permission set

          You can initialize sample limits automatically with these template types.

          • Default country-specific templates
          • Default generic template
          • Custom advanced templates

          Turn on Trigger Handlers

          To initialize sample limits automatically for all templates in your Salesforce org, first turn on trigger handlers.

          1. From the App Launcher, find and select LifeSciences Commercial, and then select Admin Console.
          2. Select Trigger Handler Administration.
          3. Search for and turn on these trigger handlers.
            • NewAccountSampleLimitInitHandlerforHCO
            • NewAccountSampleLimitInitHandler

          Initialize Sample Limits for Specific Templates

          After you turn on trigger handlers, you can choose to initialize sample limits for accounts with specific templates.

          1. From the object management settings for the Account object, create a custom text or picklist field to determine the sample limit templates that are applied automatically to new HCP or HCO accounts.
          2. From the App Launcher, find and select Admin Console.
          3. Select Sample Limits, and then select Sample Limit Settings.
          4. Choose whether to apply the settings at the organization level, or select the user profile or the individual user to apply the settings for.
          5. In the Account Sample Limits Source Field, select the field on the Account object that determines the sample limit templates that are applied automatically to new healthcare professional or healthcare organization accounts.
          6. Save your changes.

          Each time that you create a new account, in the custom field that you created, enter the API name of the sample limit template to initialize for that account. After you save the record, sample limit templates are initialized automatically for the new account.

          If you update the custom sample limit template field on an existing account, run the batch job manually to initialize the sample limits for that account. See Monitor and Run Batch Jobs for Sample Limit Triggers.

           
          Loading
          Salesforce Help | Article