---
title: "resolveGroupName(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/increatenoteintenthandling/resolvegroupname(for:with:)"
---

# resolveGroupName(for:with:)

Resolves the intended group of the note.

## Declaration

```swift
optional func resolveGroupName(for intent: INCreateNoteIntent, with completion: @escaping @Sendable (INSpeakableStringResolutionResult) -> Void)
```

```swift
optional func resolveGroupName(for intent: INCreateNoteIntent) async -> INSpeakableStringResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the intended group for the note. Use the intent object to obtain the group information, if any, specified by the user. Groups are a way for you to organize the notes of your app. For example, the Notes app provides a group for the services, such as iCloud, that manage notes. If the intent does not contain a group name, choose a resolution that is most appropriate for your app. If your app does not support organizing notes into groups, you might return a result indicating that the group name is not required. If you are able to select a default group for the note, create a successful resolution that includes the name of the group you selected.

## See Also

### Resolving the Intent Parameters

- [resolveTitle(for:with:)](intents/increatenoteintenthandling/resolvetitle(for:with:).md)
- [resolveContent(for:with:)](intents/increatenoteintenthandling/resolvecontent(for:with:).md)
