---
schema_version: "1"
id: b75d3f54fb92b6954d41687e57b212e119508b625afeacfc95dc62ae3d249221
title: AssociatedLocation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_associatedlocation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_associatedlocation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f64d73ea7e0383010ffed96436aea09c0d6619bb4bcc381883f6fd44ae55c928
description: Represents a link between an account and a location in Field Service. You can associate multiple accounts with one location. For example, a shopping center location may have multiple customer accounts.
---
# AssociatedLocation

Represents a link between an account and a location in Field Service. You can associate multiple accounts with one location. For example, a shopping center location may have multiple customer accounts.

## Supported Calls

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

## Special Access Rules

Field Service must be enabled.

## Fields

| Field Name | Details |
| --- | --- |
| ActiveFrom | 
Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

Date and time the associated location is active.



 |
| ActiveTo | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

Date and time the associated location stops being active.



 |
| AssociatedLocationNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Auto-generated number identifying the associated location.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date the associated location was last modified.





 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date the associated location was last viewed.



 |
| LocationId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The location associated with the address.

This is a relationship field.

Relationship Name

Location

Relationship Type

Lookup

Refers To

Location



 |
| ParentRecordId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The account associated with the location.

This is a relationship field.

Relationship Name

ParentRecord

Relationship Type

Lookup

Refers To

Account



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Picklist of address types. The values are:

- Bill To
- Ship To





 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[AssociatedLocationChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 62.0)

Change events are available for the object.

[AssociatedLocationHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.