---
schema_version: "1"
id: 4ffb382d675c2fc325daa0789cb98410e9e849693fdd2da1493c57e738fc15d6
title: UserAppInfo
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userappinfo.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userappinfo.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c6d0017a1412d4a24a8dabdd3de8d75a3e9e6160c422b5cf2734d8fa877f5ab3
description: Stores the last Lightning app logged in to. If the user hasn’t logged into Salesforce or if the user lost access to the last accessed app, the UserAppInfo object stores a Null value. This object is available in API version 38.0 and later.
---
# UserAppInfo

Stores the last Lightning app logged in to. If the user hasn’t logged into Salesforce or if the user lost access to the last accessed app, the UserAppInfo object stores a Null value. This object is available in API version 38.0 and later.

## Supported Calls

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

## Fields

| Field Name | Details |
| --- | --- |
| AppDefinitionId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the last Lightning app that the user logged in to. This field is available in API version 43.0 and later.

This is a relationship field.

Relationship Name

AppDefinition

Relationship Type

Lookup

Refers To

AppDefinition



 |
| FormFactor | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The relative size of the app as displayed. Values are:

- Small—suitable for a small device like a mobile phone
- Medium—suitable for a tablet
- Large—suitable for a large display device, like a monitor

It’s possible to have three versions of the app as the one last logged in to, where each version has a different form factor.





 |
| UserId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the user that used this app.

This is a relationship field.

Relationship Name

User

Relationship Type

Lookup

Refers To

User



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[UserAppInfoChangeEvent](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.