<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INOutgoingMessageTypeResolutionResult/success(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INOutgoingMessageTypeResolutionResult(cm)successWithResolvedOutgoingMessageType:"
  },
  "title" : "success(with:)"
}
-->

# success(with:)

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

```
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

A new [`INOutgoingMessageTypeResolutionResult`](/documentation/Intents/INOutgoingMessageTypeResolutionResult) object.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)