---
title: "success(with:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inoutgoingmessagetyperesolutionresult/success(with:)"
---

# success(with:)

Creates an object with a resolution that involves the successful matching of the specified parameter.

## Declaration

```swift
class func success(with resolvedOutgoingMessageType: INOutgoingMessageType) -> Self
```

## Parameters

- `resolvedOutgoingMessageType`: The object that resolves the requested parameter of the intent. This value may be different than the one the intent object specifies.

## Return Value

Return Value A new INOutgoingMessageTypeResolutionResult object.

## Discussion

Discussion Use this method to create a result object when you can send a message in the format the intent specifies.

## See Also

### Creating a Resolution Result

- [confirmationRequired(with:)](intents/inoutgoingmessagetyperesolutionresult/confirmationrequired(with:).md)
