---
title: "exported(as:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/anytransientappentity/exported(as:)-7mrbg"
---

# exported(as:)

Exports this transient entity’s content as an IntentFile.

## Declaration

```swift
func exported(as contentType: UTType? = nil) async throws -> IntentFile
```

## Parameters

- `contentType`: The desired export format (e.g., .json, .png). Pass nil to use the entity’s default representation.

## Return Value

Return Value The exported content as an IntentFile.

## Discussion

Discussion When no content type is specified, the entity’s first registered TransferRepresentation is used. The exported file can be passed as a parameter to another intent or used to verify the entity’s export format. To resolve exported content back into an entity, use AppEntityDefinition/resolved(from:)-8f2x on a non-transient entity definition — transient entities are not resolvable by design since they have no stable identifier. note: If the entity does not conform to Transferable or does not support the requested format.
