Code Monkey home page Code Monkey logo

triggers-without-frameworks's Introduction

SFDX App

This is the sample respository for the course: Play by Play: Adopting Trigger Design Patterns in Existing Salesforce Orgs

Dev, Build and Test

Each commit represents a step in the course. Checkout individual commits to follow along

Resources

Description of Files and Directories

Issues

Refer to the course for specific descriptions of the various methods and processes. The following notes also apply:

  • leadTriggerSetFollowup makes sure any lead inserted or updated to "Working - Contacted" has a Lead Followup task created.

  • taskTriggerSetStatus looks for task insertion where the task references a lead. When it does, if the lead is "Open - Not Contacted", the lead status is set to "Working - Contacted". If the lead status is "Working - Contacted" it is set to "Working Harder"

  • taskTriggerTrackCount - updates the task count on leads when tasks are inserted, deleted, updated

  • Process follow-up on lead accounts checks for leads created with emails other than gmail, hotmail and yahoo. It creates for them a Lead Followup task.

  • Process first owner worked checks for leads with a user owner and a status that starts with working - updates the first owner worked field to the user

  • Steps:

    1. Change process follow-up on lead accounts to set additional field so taskTriggerSetStatus can be bypassed.
    2. Bypass first owner worked process if status is changed due to task being created on a lead
    3. Combine field updates on taskTriggerTrackCount and taskTriggersetStatus

triggers-without-frameworks's People

Contributors

danappleman avatar mahesh-biswas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.