Loading

ServiceAppointment fieldAccountId Population from ParentRecordId

Veröffentlichungsdatum: Oct 14, 2026
Beschreibung

When you create a Service Appointment (SA), Salesforce fills AccountId, and sometimes ContactId, from the record in ParentRecordId. What gets filled depends on the parent object type. Values are set only when the SA is created. 

Behavior by parent object:

1. Work Order
   - If the Work Order has an Account, SA.AccountId = WorkOrder.AccountId.
   - If the Work Order's Account is blank, SA.AccountId stays blank.
2. Work Order Line Item (WOLI)
   - Values come from the WOLI's parent Work Order, not from the WOLI itself.
   - SA.AccountId = parent WorkOrder.AccountId.
   - If the parent Work Order's Account is blank, SA.AccountId stays blank.
3. Account
   - SA.AccountId = the Account's Id.
4. Opportunity
   - If the Opportunity has an Account, SA.AccountId = Opportunity.AccountId.
   - If the Opportunity's Account is blank, SA.AccountId stays blank.
5. Asset
   - If the Asset has an Account, SA.AccountId = Asset.AccountId.
   - If the Asset's Account is blank, SA.AccountId stays blank.
6. Lead
   - SA.AccountId  stay blank.
7. Case
   - If the Case has an Account, SA.AccountId = Case.AccountId.
   - If the Case's Account is blank, SA.AccountId stays blank.

Lösung

Nummer des Knowledge-Artikels

005461846

 
Laden
Salesforce Help | Article