---
schema_version: "1"
id: d330fd4cdedf9ffa1b6967aa52dadfc89b9e0da98d2b531c2bdcf242d2b96057
title: AgentforceUIApiRecord
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-ui-api-record-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-ui-api-record-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 032034fb3fd011b962fcfd161b1978d24f87d09573c08c576477f0922c5c1670
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceUIApiRecord

## Overview

A data structure that represents UI API record information in Agentforce conversations. It provides comprehensive record metadata including fields, relationships, and system information for displaying records in conversation interfaces.

## Declaration

```swift
struct AgentforceUIAPIRecord
```

## Properties

| Property             | Type                                         | Description                                                  |
| -------------------- | -------------------------------------------- | ------------------------------------------------------------ |
| `apiName`            | `String`                                     | The API name of the record                                   |
| `childRelationships` | `[String : AgentforceUIAPIRecordCollection]` | Dictionary of child relationship names to record collections |
| `eTag`               | `String`                                     | Entity tag for the record                                    |
| `fields`             | `[String : AgentforceUIAPIFieldValues]`      | Dictionary of field names to field values                    |
| `id`                 | `String`                                     | The unique identifier of the record                          |
| `lastModifiedById`   | `String?`                                    | ID of the user who last modified the record                  |
| `lastModifiedDate`   | `String?`                                    | Date when the record was last modified                       |
| `recordTypeId`       | `String?`                                    | ID of the record type                                        |
| `recordTypeInfo`     | `AgentforceUIAPIRecordTypeInfo?`             | Information about the record type                            |
| `systemModstamp`     | `String?`                                    | System modification timestamp                                |
| `weakEtag`           | `Int64`                                      | Weak entity tag for the record                               |

## Methods

| Method                                                                                                                                   | Signature                                                                                                                                                                                                                                                                                                                               | Description                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `init(apiName:childRelationships:eTag:weakEtag:fields:id:lastModifiedById:lastModifiedDate:recordTypeId:recordTypeInfo:systemModstamp:)` | `init(apiName: String, childRelationships: [String : AgentforceUIAPIRecordCollection], eTag: String, weakEtag: Int64, fields: [String : AgentforceUIAPIFieldValues], id: String, lastModifiedById: String?, lastModifiedDate: String?, recordTypeId: String?, recordTypeInfo: AgentforceUIAPIRecordTypeInfo?, systemModstamp: String?)` | Creates a new record with all metadata and field information     |
| `init(from:)`                                                                                                                            | `init(from decoder: Decoder) throws`                                                                                                                                                                                                                                                                                                    | Creates a new instance from a decoder (inherited from Decodable) |
