How nutanamru/salesforce_projects works
Project type and purpose
• HandsMen Threads is a cloud-native CRM application built on Salesforce.
• It automates order confirmations, inventory alerts, loyalty tracking, and nightly batch reconciliation.
• Core technologies: Apex (triggers, classes, batch jobs), Flow Builder, Lightning App Builder, standard/custom Salesforce objects, Email Alerts.
File structure
• HandsMen_Threads.pdf – project overview and supporting documentation.
• Readme.md – outlines features, tech stack, real-world problems addressed.
• apex code.zip – contains all Apex triggers, classes, batch jobs and metadata for flows and Lightning pages.
README for architectural insights
• UI layer: Lightning App Builder pages and possibly Visualforce/Lightning Components.
• Business logic: Apex triggers for real-time data checks, Batch Apex for nightly reconciliation, Flow Builder for scheduled flows and record-based automations.
• Data layer: Salesforce objects (Order, Inventory, Loyalty, etc.) defined via master-detail and lookup relationships.
• Integrations: Email Alerts for notifications, plus any external or internal warehouse systems receiving alerts by email.
a. Main components (4 layers):
– User Interface: Salesforce Lightning pages and flows (mobile/desktop).
– Business Logic:
• Apex Trigger modules (on-save record checks)
• Apex Classes (service layer)
• Batch Apex jobs scheduled at midnight
• Flow Builder processes (scheduled and record-triggered Flows)
– Data Storage: Custom and standard Salesforce objects with relationships.
– External Services:
• Email service (Salesforce Email Alerts)
• Warehouse/ERP email endpoint or API (if applicable)
b. Relationships and interactions:
– Scheduled flows and Batch Jobs run autonomously at defined times, update records and fire email alerts.
– Email Alerts flow outbound to warehouse or customers.
c. Architectural patterns & principles:
– Event-driven (record-triggered triggers and flows).
– Layered separation: UI (Lightning) → application services (Apex/Flows) → persistence (objects).
– Scheduled processing for bulk jobs.
– Declarative + programmatic hybrid approach (Flow Builder + Apex).
d. Key technologies & frameworks:
– Salesforce Lightning App Builder, Flow Builder, Apex (Triggers, Classes, Batch).
– Standard Email Alert infrastructure.
– Data modeling via master-detail and lookup relationships.