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

# success(with:)

Creates an object whose resolution involves the successful matching of the specified parameter.

## Declaration

```swift
class func success(with resolvedNote: INNote) -> Self
```

## Parameters

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

## Return Value

Return Value A new INNoteResolutionResult object.

## Discussion

Discussion Use this method to create a result object after successfully locating the note to modify. Provide an INNote object with as much information about the note as you have available.

## See Also

### Creating a Resolution Result Object

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