Loading
Slack製品の問い合わせ先はSalesforce Helpへ統合・変更されます続きを読む

Service-Field Service: Breaks Created as Wrong Record Type in Work Rules

公開日: Aug 19, 2026
説明

Problem

When Service-Field Service automatically creates break records through Work Rules, the breaks may be assigned an incorrect record type — for example, Meeting instead of Lunch. The record type on the created Resource Absence record doesn't match the break type specified in the Work Rule, and this happens consistently across all automatically created breaks.

Cause

When a Work Rule creates a break record, Service-Field Service applies the Resource Absence object's default record type at creation time — before the Work Rule's specified break type is evaluated. If that default is set to an unintended type (such as Meeting), every automatically created break inherits it, regardless of what the Work Rule intended.

解決策
Since the object-level default record type overrides the Work Rule's break type, update the default to match the intended type:

  1. In Setup, use Quick Find to open Object Manager.
  2. Search for and select Resource Absence.
  3. Under Record Types, identify the record type currently marked as default.
  4. If it's not the intended break type (e.g., set to Meeting but you want Lunch), open the intended record type.
  5. Click Set as Default (or enable the default checkbox).
  6. Save your changes.
  7. Trigger the Work Rule again to create a test break record and confirm it now uses the correct type.


To verify the fix:

  • Trigger a Work Rule that creates a break record (e.g., by creating or updating a Service Resource or Service Appointment matching the rule's criteria).
  • Open the new Resource Absence record and confirm the Record Type field shows the intended type (e.g., Lunch), not the previous one (e.g., Meeting).
  • Repeat with a few more records to confirm consistency.


::: {.callout}
NOTE: Changing the default record type only affects future break records — existing records with the wrong type must be updated manually. If your Work Rules use multiple break types (e.g., Lunch, Dinner, Personal), you can only set one as the object-level default; choose the most frequently used type, or use a custom Flow/Apex automation to assign the correct type based on Work Rule logic.
ナレッジ記事番号

005391179

 
読み込み中
Salesforce Help | Article