Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.23 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.23 KB

MicroTrigger Examples

This repo contains some examples of Trigger Development using the MicroTrigger Framework.

Deploy the MicroTrigger Examples

The MicroTrigger Examples repo is dependent on the MicroTrigger Framework so the MicroTrigger Framework needs to be installed/deployed in the Org or Scratch Org first.

  1. Clone the MicroTrigger Framework repo, then create an Unlocked Package and Unlocked Package version. In the sfdx-project.json file, replace the MICROTRIGGERFRAMEWORK_PACKAGE_ID with the created Package ID.
  2. Create a Scratch Org and install the MicroTrigger Framework in the Scratch Org.
  3. Clone the current repo then deploy to your Scratch Org.

Project Artifacts

The MicroTrigger Examples project has 2 artifacts:

  • Rollups: This artifact some examples of Rollups logic. In this example, we create some rollup trigger logic from Payment Object to Opportunity and Account.
  • Common: This artifact contains the common components (Schema, Layouts, Objects Profiles and Apex Triggers).