

# GetCalculatedAttributesForCustomerProfile
<a name="interactions-getcalculatedattributesforcustomerprofile"></a>

Retrieve calculated attributes for a customer profile. Customer Profiles must be enabled for your Amazon Connect instance.

## Parameter object
<a name="getcalculatedattributesforcustomerprofile-parameter"></a>

A `ProfileId` must be present.

```
{
    "ProfileRequestData": {
        "ProfileId": Profile owning the calculated attribute
    },
   "ProfileResponseData": {
       All of these fields are optional.
       "CalculatedAttributes._average_hold_time",
       "CalculatedAttributes._frequent_caller",
       "CalculatedAttributes.x",
   }
}
```

## Results and conditions
<a name="getcalculatedattributesforcustomerprofile-results"></a>

None. Conditions are not supported. If an error does not occur, the response's attributes are available dynamically under the `$.Customer` path based on the attributes included in `ProfileResponseData`.

## Errors
<a name="getcalculatedattributesforcustomerprofile-errors"></a>
+ NoneFoundError - if no profiles were found for the associated profile search key.
+ NoMatchingError - if no other Error matches.

## Corresponding block in the UI
<a name="getcalculatedattributesforcustomerprofile-ui"></a>

[Customer profiles block](https://docs.aws.amazon.com/connect/latest/adminguide/customer-profiles-block.html) 