Resource
The Resource object in Maica is used to manage the details of your Service Delivery Staff, i.e. Care Workers or Coordinators.
Fields & Relationships
The table below provides a comprehensive overview of all fields and relationships for the Resource object in Maica. Please refer to the table below for detailed information.
Click here to view and download the complete Resource Schema.
Validation Rules
The list below outlines the Validation Rules applied to the Resource Object in Maica.
Please refer to the list below for more detailed information on each Validation Rule.
End Date Must Not Be Before Start Date
Ensures that the End Date cannot be before the Start Date.
Rule Name
VAL_RESOURCE_0001
Error Message
VAL_0001: The End Date cannot be before the Start Date.
Error Location
Top of Page
AND(
NOT(ISBLANK(maica_cc__Start_Date__c)),
NOT(ISBLANK(maica_cc__End_Date__c)),
maica_cc__Start_Date__c > maica_cc__End_Date__c
)
Required Resource Attributes when Resource type is Resource
This validation rule ensures key Resource attributes are populated when the Resource Type is Resource. These attributes are:
Employment Type
Weekly Hours Limit
Daily Hours Limit
Weekly Hours Minimum
Rule Name
VAL_RESOURCE_0002
Error Message
VAL_0002: When the Resource Type is Resource, the following fields are required: Employment Type, Weekly Hours Limit, Daily Hours Limit, Weekly Hours Minimum.
Error Location
Top of Page
AND(
ISPICKVAL(maica_cc__Resource_Type__c, "Resource"),
OR(
ISPICKVAL(maica_cc__Employment_Type__c, ""),
ISBLANK(maica_cc__Weekly_Hours_Limit__c),
ISBLANK(maica_cc__Weekly_Hours_Minimum__c),
ISBLANK(maica_cc__Daily_Hours_Limit__c)
)
)
Weekly Hours Minimum Must Be Less Than Weekly Hours Limit
Ensures that the Weekly Hours Minimum is less than the Weekly Hours Limit.
Rule Name
VAL_RESOURCE_0003
Error Message
VAL_0003: Weekly Hours Minimum must be less than Weekly Hours Limit.
Error Location
Weekly Hours Minimum
AND(
NOT(ISNULL(maica_cc__Weekly_Hours_Minimum__c)),
NOT(ISNULL(maica_cc__Weekly_Hours_Limit__c)),
maica_cc__Weekly_Hours_Minimum__c >= maica_cc__Weekly_Hours_Limit__c
)
Related User Required when Resource Type equals Resource
Ensures the User lookup is populated when Resource Type = Resource.
Rule Name
VAL_RESOURCE_0004
Error Message
VAL_0004: A related User is required when Resource Type = Resource.
Error Location
User
AND(
ISPICKVAL(maica_cc__Resource_Type__c, "Resource"),
ISBLANK(maica_cc__User__c)
)
Automation
Flows
The list below outlines the Flows applied to the Resource Object in Maica.
Please refer to the list below for more detailed information on each Flow.
Resource Geocoding
This Salesforce Autolaunched Flow is designed to geocode addresses for resources, updating their latitude and longitude based on the provided address information.
Flow Label
Maica - Resource Geocoding
API Name
maica__Maica_Resource_Geocoding
Type
Autolaunched Flow
Flow Summary
This flow facilitates the geocoding of resource addresses by:
Detecting changes to resource records and ensuring address fields are populated.
Calling an Apex action to geocode the address.
Updating the resource record with the geocoded latitude and longitude.
Trigger Handlers
The list below outlines the Trigger Handlers applied to the Resources Object in Maica.
Please refer to the list below for more detailed information on each Trigger Handler.
Resource Deactivation
This trigger is designed to manage the deactivation of resources in Maica.
Load Order
1
Label
ResourceDeactivation_MDTM
Resource Geocoding
This trigger is designed to manage the geocoding of resources in Maica.
Load Order
2
Label
ResourceGeocode_MDTM
Last updated
Was this helpful?