---
title: DynamicPropertyPath
framework: appintentstesting
role: symbol
role_heading: Structure
path: appintentstesting/dynamicpropertypath
---

# DynamicPropertyPath

A type-safe, dynamic path to access nested intent values.

## Declaration

```swift
@dynamicMemberLookup struct DynamicPropertyPath
```

## Overview

Overview You typically don’t create instances of DynamicPropertyPath directly. The system returns instances of the type to indicate that you can further traverse a nested property. Use DynamicPropertyPath for chained property access and array indexing on entities and intent results. // Navigate nested properties. let name: String = try entity.profile.name

// Index properties into an array. let first: String = try entity.tags[0]

// Cast the entity to a known entity type definition. let coffee: AnyAppEntity = try result.value.as(CoffeeEntity)

## Topics

### Instance Methods

- [as(_:)](appintentstesting/dynamicpropertypath/as(_:)-5po1a.md)
- [as(_:)](appintentstesting/dynamicpropertypath/as(_:)-6n9rh.md)

### Subscripts

- [subscript(_:)](appintentstesting/dynamicpropertypath/subscript(_:)-1hj9z.md)
- [subscript(_:)](appintentstesting/dynamicpropertypath/subscript(_:)-4bof1.md)
- [subscript(_:)](appintentstesting/dynamicpropertypath/subscript(_:)-kiay.md)
- [subscript(dynamicMember:)](appintentstesting/dynamicpropertypath/subscript(dynamicmember:)-aj9z.md)
- [subscript(dynamicMember:)](appintentstesting/dynamicpropertypath/subscript(dynamicmember:)-hqdv.md)
- [subscript(dynamicMember:)](appintentstesting/dynamicpropertypath/subscript(dynamicmember:)-lizi.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [AppIntentTypeDefinition](appintentstesting/appintenttypedefinition.md)
- [DynamicPropertyPathCollection](appintentstesting/dynamicpropertypathcollection.md)
- [IntentValuePropertiesCallable](appintentstesting/intentvaluepropertiescallable.md)
