Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case ID to CCA on outbound Click to Dial CTI Flow #155

Open
judda-cashapp opened this issue Aug 5, 2022 · 0 comments
Open

Case ID to CCA on outbound Click to Dial CTI Flow #155

judda-cashapp opened this issue Aug 5, 2022 · 0 comments

Comments

@judda-cashapp
Copy link

I work for CashApp as a Voice BSA support Amazon Connect which is integrated into Salesforce. I was referred here per AWS Case ID: Case ID 10513893341.

We are looking to build an outbound CTI flow using Click to Dial as the initiating event. The goal is to grab the Salesforce Case ID from the data payload and post to the Amazon CCA record. As is -- the CCA record is created, but the related Case ID is not attached.

We have tested and see that both the Salesforce Case ID and Amazon Contact ID are included in the payload. Need help to solution the CTI Flow to utilize that data to populate the Case ID into the CCA record.
Contact Center Instance ARN: arn:aws:connect:us-east-1:040549526589:instance/291e2af8-fdd2-457d-b63a-5d6984ac8157

Attached is the payload from console log from a test call utilizing click to dial. I've pasted a snippet below.
Note - it contains the contact iD as well as the recordid and recordname. The RecordID / RecordName are the Saleforce Case identifiers.

contactId 99a3267e-ce68-41a5-9f29-b8af68b26d82
"recordId":"5006t000003t5ubAAA","recordName":"56730191"

Appreciate your help!
Judd Alexander
CashApp Voice BSA

LogUtils.ts:41 [CTI ADAPTER]: [FLOW]: Executing Flow: {"name":"Salesforce UI onClickToDial","actions":[{"id":"0","type":"SE_Start","controls":{},"ports":{"done":"1"},"position":[-288,16]},{"id":"1","type":"SE_AgentDialNumber","controls":{"phoneNumber":"$.payload.number"},"ports":{"success":"2","failure":"2"},"position":[10,10]},{"id":"2","type":"SE_End","controls":null,"position":[384,16]}]}
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: payload: {"number":"+15035777532","recordId":"5006t000003t5ubAAA","recordName":"56730191","objectType":"Case"}
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: nextAction: {"id":"0","type":"SE_Start","controls":{},"ports":{"done":"1"},"position":[-288,16]}
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: actions: {"0":{"success":true,"results":null,"exception":null}}
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: nextAction: {"id":"1","type":"SE_AgentDialNumber","controls":{"phoneNumber":"+15035777532"},"ports":{"success":"2","failure":"2"},"position":[10,10]}
connect-streams-min.38499a86.js:1 [2022-08-05T03:04:34.919Z] [INFO] [589a8ced-7656-4a91-b994-5dc9e04783ba]: media controller of type softphone init
connect-streams-min.38499a86.js:1 [2022-08-05T03:04:34.920Z] [INFO] [589a8ced-7656-4a91-b994-5dc9e04783ba]: SoftphoneContact init
connect-streams-min.38499a86.js:1 [2022-08-05T03:04:34.946Z] [INFO] [589a8ced-7656-4a91-b994-5dc9e04783ba]: Contact detected: contactId 99a3267e-ce68-41a5-9f29-b8af68b26d82 agent connectionId a9fe3189-a727-4311-aac3-4d3e755acb53
connect-streams-min.38499a86.js:1 [2022-08-05T03:04:34.962Z] [INFO] [589a8ced-7656-4a91-b994-5dc9e04783ba]: Softphone call detected: contactId 99a3267e-ce68-41a5-9f29-b8af68b26d82 agent connectionId a9fe3189-a727-4311-aac3-4d3e755acb53
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: actions: {"0":{"success":true,"results":null,"exception":null}}
LogUtils.ts:41 [CTI ADAPTER]: [FLOW] [Salesforce UI onClickToDial]: nextAction: {"id":"1","type":"SE_AgentDialNumber","controls":{"phoneNumber":"+15035777532"},"ports":{"success":"2","failure":"2"},"position":[10,10]}

TEST_cf1--cashbox.sandbox.lightning.force.com-1659669303047.log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant