Unable to find ARN of customer profile

0

Hi,

I am trying to create a new case using connect cases against a customer profile through connect-cases-sdk from a Lambda function. For the same, It is expecting profile ARN against whom I want to register case as one of the params but ARNs of customer profile is not specified anywhere with in the customer profiles console. I tried building ARN using the standard syntax but receiving following error.

I referred several connect documents but they haven't mentioned where I can find the ARN of the customer profile. Kindly help me with this. Thanks in advance!

"errorType":"ValidationException","errorMessage":"The provided customer_id value 'arn:aws:connect:us-east-1:2XXXXXXX79:instance/4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXb1/customer-profile/bXXXXXXXXXXXXXX' is not valid. Failed to extract domainName or profile ID from 'arn:aws:connect:us-east-1:2XXXXXXX79:instance/4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXb1/customer-profile/bXXXXXXXXXXXXXX'."```
1 Answer
1

the ARN for a customer profile is constructed like this:

customer_id - You must provide the full customer profile ARN in this format:

arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID

https://docs.aws.amazon.com/cases/latest/APIReference/API_CreateCase.html

here is an example from my instance that I got working using cli: aws connectcases create-case --domain-id 12345678-abcd-1234-abcd-b58746ddc44a --fields id=title,value={stringValue=title=test01052023} id=customer_id,value={stringValue=arn:aws:profile:us-east-1:123456789086:domains/choi3/profiles/123456789012345678901234567890c5} --template-id 12345678-853c-abcd-866b-d1ae84cf1973

To get the profile id, you use: search profiles API https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions