---
title: "dynamicallyCall(withKeywordArguments:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/intentvaluepropertiescallable/dynamicallycall(withkeywordarguments:)"
---

# dynamicallyCall(withKeywordArguments:)

Returns an instance of T by applying the provided argument values to the properties.

## Declaration

```swift
func dynamicallyCall(withKeywordArguments args: KeyValuePairs<String, (any IntentValueExpressing)?>) -> T
```

## Discussion

Discussion Typically, you use this subscript implicitly via function-call syntax, for example: let intent = CreateCoffeeIntent.makeIntent(customerName: "MyName", size: 12.0) This is equivalent to the desugared syntax: let intent = CreateCoffeeIntent.makeIntent.dynamicallyCall([     "customerName": "MyName",     "size": 12.0 ])
