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.
005461846

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.