---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "GET AI Completion Result Flow Reference"
description: "Inputs, outputs, transaction effects and troubleshooting for GET AI Completion Result in Salesforce Flow."
contentType: "reference"
audience: "admin,developer"
---

# GET AI Completion Result

Select one key/value result from a completion-result collection.
The namespaced Apex action name is `rooms__AICompletionResult`.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No API callout is made. |
| Record writes | No record is inserted, updated or deleted. |
| Background work | No queued work is started. |
| Platform event | The action does not directly publish a platform event. |
| Email | The action does not send email. |

This action selects the first matching key. A missing key produces no matching result; it does not return a Success field. A missing match can also reduce the response collection size.

## Inputs

Required describes the Flow input setting. Additional conditions are stated in the guidance.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `results` | Completion Results (Collection) | Yes | The existing completion-result collection. Required. |
| `key` | Requested Key | Yes | The exact key to select. Required. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `result` | Result | The first matching key/value result. No match has no returned result. |

## Configure the Flow

1. Pass the collection returned by AI Completion Action.
2. Set Requested Key to the exact key.
3. Check that a Result was returned before using its value.

Confirm the Flow user's action access and the required access to the referenced records.
Review the configured Salesforce API connection user's access when the action makes a callout.
Connect the action's Fault path.

## Troubleshooting

**No Result is returned.** Confirm the requested key and inspect the completion collection. Guard null collections before calling the action.

Confirm that the action and its fields exist in the installed package.
See the [Flow action index](/content/build/flows/index.md) for related actions and transaction guidance.
