Initialize Garden Fields Upon Record Creation
Not Started

User Story:
As a GreenGuardian CRM Director, I want the system to automatically initialize fields when a new garden record is created, so the data remains consistent and the record creation process is more efficient.

Acceptance Criteria:

  • When a new garden record is created, each field should be populated with its predefined default value, as specified below.
  • The default values should be set only during record creation, not updates.

Default Values:

Field LabelField API NameDefault Value
StatusCAMPX__Status__cAwaiting Resources
Maximum Plant CountCAMPX__Max_Plant_Count__c100
Minimum Plant CountCAMPX__Minimum_Plant_Count__c1
Total Plant CountCAMPX__Total_Plant_Count__c0
Total Unhealthy Plant CountCAMPX__Total_Unhealthy_Plant_Count__c0



Example Scenarios:

  • A user creates a new garden record without specifying any details other than the name. The system automatically sets the fields to their respective default values from the table above.
  • A user updates an existing garden record's maximum plant count to 15. The new value, 15, persists and replaces 100.