Skip to content

Instantly share code, notes, and snippets.

@shinsaka
Last active March 21, 2022 03:24
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/ac297e39fbe87ff3acd0737dfbd81a14 to your computer and use it in GitHub Desktop.
Save shinsaka/ac297e39fbe87ff3acd0737dfbd81a14 to your computer and use it in GitHub Desktop.
Considering "DoNotCall" CTI FLOW Script for Amazon Connect CTI Adapter for Salesforce
{
"actions": [
{
"id": "0",
"type": "SE_Start",
"meta": {},
"controls": {},
"ports": {
"done": "1"
},
"position": [
0,
0
]
},
{
"id": "1",
"type": "SE_SFRetrieve",
"meta": {},
"controls": {
"fields": "DoNotCall",
"type": "$.payload.objectType",
"id": "$.payload.recordId"
},
"ports": {
"success": "2",
"failure": "4"
},
"position": [
160,
0
]
},
{
"id": "2",
"type": "SE_Decision",
"meta": {},
"controls": {
"operandA": "$.actions.1.results.record.DoNotCall",
"comparator": "===",
"operandB": "false",
"evaluateAs": "boolean"
},
"ports": {
"true": "3",
"false": "4"
},
"position": [
528,
-32
]
},
{
"id": "3",
"type": "SE_AgentDialNumber",
"meta": {},
"controls": {
"phoneNumber": "$.payload.number",
"queueARN": ""
},
"ports": {
"success": "5",
"failure": "5"
},
"position": [
864,
16
]
},
{
"id": "4",
"type": "SE_CoreAlert",
"meta": {},
"controls": {
"message": "電話拒否設定されています。架電できません。"
},
"ports": {
"done": "5"
},
"position": [
864,
208
]
},
{
"id": "5",
"type": "SE_End",
"meta": {},
"controls": null,
"ports": {},
"position": [
1200,
160
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment