User Story
As a Salesforce learner
I want to create a custom object with various fields
So that I can practice creating and testing different types of formula fields to understand how they work.
Acceptance Criteria
-
Object Creation: A custom object named Formula_Practice
should be created.
- API Name:
Formula_Practice__c
- Description: "An object to practice various formula types and functions."
-
Fields Setup:
- Number Field:
Sales_Amount__c
- Type: Number (18, 2)
- Used for numeric calculations.
- Number Field:
Amount__c
- Type: Number (16, 2)
- Used for numeric calculations.
- Date Fields:
Start_Date__c
(Type: Date)
End_Date__c
(Type: Date)
- Both fields will be used to calculate durations.
- Checkbox Field:
Is_Active__c
- Used in logical formulas to display different results based on the checkbox value.
- Text Field:
Description__c
- Stores text, useful for practicing text-based formula functions.
-
Formula Fields:
- Discount__c: A Percent formula field that calculates a discount based on
Sales_Amount__c
.
- Duration_in_Days__c: A Number formula field that calculates the difference between
End_Date__c
and Start_Date__c
.
- Is_Active_Text__c: A Text formula field that displays "Active" or "Inactive" based on the
Is_Active__c
checkbox.