Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

UserLocationAssignment

Represents the assignment between a location and a user. This object is available in API version 57.0 and later.

Supported Calls:

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

Special Access Rules:

This object is only available in Salesforce Order Management orgs.

Fields

Field Details
UserLocationAssignmentNumber
Type
text
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Auto-generated number for the association
AssignedTo
Type
foreignkey (user)
Properties
Create, Filter, Group, Sort, Update
Description
User being associated with the location
Location
Type
foreignkey (location)
Properties
Create, Filter, Group, Sort, Update
Description
Location being associated to the User
Username
Type
string (derived)
Properties
Filter, Sort
Description
Username of the User that is associated to the Location
IsActive
Type
boolean
Properties
Create, Filter, Group, Sort, Update
Description
Whether the location is active or not

Usage:

The UserLocationAssignment object associates a user to specified work locations. To assign a user to multiple locations, create Multiple UserLocationAssignment objects. Use the isActive field to indicates the user's current active location.