ServiceResourceCostRule

Represents the rules that calculate the value of a meal or equivalent gifts awarded to the field service worker. This object is available in API version 62.0 and later.

Supported Calls 

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Fields 

ApexClassId 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The Apex class associated with the service resource cost rule. This field is a relationship field.
  • Relationship Name: ApexClass
  • Refers To: ApexClass

Category 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Description: Specifies the category of the service resource cost rule.

  • Possible values:

    • Gift
    • Others
    • Union Terms

Description 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The description of the service resource cost rule.

IsActive 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the service resource cost rule is active.
  • Default value: false

LaborUnionId 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The labor union associated with the service resource cost rule. This field is a relationship field.
  • Relationship Name: LaborUnion
  • Refers To: LaborUnion

Name 

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Sort, Update
  • Description: The name of the service resource cost rule.

Rule 

  • Type: string
  • Properties: Create, Filter, Group, Sort, Update
  • Description: The API name of the rule that calculates the supplemental compensation or the time sheet entry item.

Type 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: Specifies the type of the service resource cost rule.

  • Possible values:

    • MealCalculation—Meal Calculations
    • TimesheetValidations—Timesheet Validations
    • TimesheetEntryItemCalculation—Timesheet Entry Item Calculation

StandardApexClass 

  • Type: string
  • Properties: Create, Filter, Group, Sort, Update
  • Description: The standard Apex class associated with the service resource cost rule.