Loading
Salesforce Enforces New Security Requirements in Summer 2026Read 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
          Assign Custom Scripts to Life Sciences Workflow Objects

          Assign Custom Scripts to Life Sciences Workflow Objects

          To enforce business rules throughout the workflow, update the validation scripts and checklists that apply to each stage object.

          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 assign custom scripts to workflow objects: Life Sciences Commercial Admin permission set

          Stage object records are created automatically after you create and save a Life Sciences Customer Engagement workflow path. One stage object record is created for each object that has a workflow. Validations and checklists apply to all object types.

          1. From the App Launcher, find and select Admin Console.
          2. Select Workflow Configuration, and then select Stage Objects.
          3. Find the object to apply custom scripts to, and then select Edit from the row-level actions.
          4. In the Validation Script field, select the custom script that you created for validation.
          5. In the Checklist Script field, select the custom script that you created for the checklist items.
          6. Save your changes.
            After you save your changes, custom scripts run automatically as long as the object has an active workflow.
           
          Loading
          Salesforce Help | Article