Skip to content

Instantly share code, notes, and snippets.

@shinsaka
Last active August 2, 2022 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinsaka/4024748c2df0ef2f43fddeeabec56211 to your computer and use it in GitHub Desktop.
Save shinsaka/4024748c2df0ef2f43fddeeabec56211 to your computer and use it in GitHub Desktop.
Open form a new case with contact ID. (Amazon Connect CTI Adapter for Salesforce -- CTI Flow script)
{
"actions": [
{
"id": "uid-start",
"type": "SE_Start",
"meta": {},
"controls": {},
"ports": {
"done": "uid-001"
},
"position": [
0,
0
]
},
{
"id": "uid-001",
"type": "SE_SFGetContactId",
"meta": {},
"controls": {
"formattedPhoneNumber": "$.contact.parsedNumber.phone"
},
"ports": {
"success": "uid-002",
"failure": "uid-end"
},
"position": [
160,
0
]
},
{
"id": "uid-002",
"type": "SE_SFScreenpopNewRecord",
"meta": {},
"controls": {
"entityName": "Case",
"defaultFieldValues": {
"ContactId": "$.actions.uid-001.results.sfContactId",
"amazonconnect__AC_Contact_Id__c": "$.contact.contactId"
}
},
"ports": {
"success": "uid-end",
"failure": "uid-end"
},
"position": [
512,
0
]
},
{
"id": "uid-end",
"type": "SE_End",
"meta": {},
"controls": {},
"ports": {},
"position": [
832,
112
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment