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
          Trigger Handlers for the MedicalInsight - Subject Objects

          Trigger Handlers for the MedicalInsight - Subject Objects

          Review the names, descriptions, and trigger conditions of the trigger handlers associated with the MedicalInsight, UserReaction, Subject and SubjectAssignment objects.

          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.

          You can also review the trigger handlers that apply to all objects.

          MedicalInsight

          Review the names, descriptions, and trigger conditions of the trigger handlers associated with the MedicalInsight object.

          Trigger Name Description Trigger condition
          PublishMedicalInsightEventHandler Publishes MedicalInsightEvent platform events whenever a medical insight record is created, updated, or deleted. This facilitates real-time event streaming and integration with external systems. afterInsert, afterUpdate, afterDelete
          RecalculateParentLinkedInsightsHandler Updates the rollup summary fields on parent medical insight records when child insights are modified. This includes updating the ChildMedicalInsightCount, UpvoteCount, and LastUpvotedDate fields to make sure roll-up summaries are accurate. afterInsert, afterUpdate, afterDelete
          MedicalInsightSharingHandler Shares medical insights records with users in the same territory and profile as the record owner, with read-only access, when the record is created. To use your own sharing settings or create custom sharing rules, turn off the MedicalInsightSharingHandler trigger. afterInsert
          InsightCascadeDeleteTriggerHandler Automatically deletes child medical insight records when a top-level parent record is deleted. This cascade deletion prevents orphan records and keeps the insight hierarchy clean. beforeDelete

          Subject

          Review the names, descriptions, and trigger conditions of the trigger handlers associated with the Subject object.

          Trigger Name Description Trigger condition
          TopicValidationHandler Prevents the creation of circular parent-child relationships when updating Subject records for medical insights. This makes sure a valid single-parent hierarchy structure. beforeUpdate

          SubjectAssignment

          Review the names, descriptions, and trigger conditions of the trigger handlers associated with the SubjectAssignment object.

          Trigger Name Description Trigger condition
          RecalculateInsightTopicNameHandler Updates the TopicNames field on the related medical insight record whenever a Subject Assignment is created or deleted. This makes sure the processed insight accurately reflects the set of topics currently assigned to the record. afterInsert, afterDelete

          UserReaction

          Review the names, descriptions, and trigger conditions of the trigger handlers associated with the UserReaction object.

          Trigger Name Description Trigger condition
          UserReactionMedicalInsightHandler Updates the UpvoteCount field on Medical Insight records when User Reaction (upvote) records are created or deleted. Duplicate user reactions from the same user on the same medical insight aren’t allowed. You can’t insert user reactions with type as downvote. afterInsert, beforeInsert, afterDelete

          To learn more about Medical Insights visibility and sharing, see Manage Medical Insight Sharing and Visibility.

           
          Loading
          Salesforce Help | Article