Initialize Garden Fields Upon Record Creation (Sometimes)
Not Started

User Story:
As a GreenGuardian CRM Director, I want the system to initialize default values for each field automatically, if not already populated, when a new garden record is created, so that the data remains consistent and the record creation process is more efficient.

Acceptance Criteria:

  • When a new garden record is created, the system should automatically set each field to its predefined default value, except when the user has already populated a field.

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 but only enters the garden's name. All fields in the table above are automatically initialized to their default values.
  • A user creates a new garden record by populating the name and maximum plant count to 50. All fields in the table above, except for maximum plant count, are automatically initialized to their default values.