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개 답변
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠