Pass Omni Channel Flow 'TargetQueue' Variable value to Connect Contact Flow for routing

0

Hi, I know how to pass contact attribute to Salesforce Omni Channel flow input variable using syntax like "Destination Key: flowinput.flowvariable" within Lambda element from connect contact flow. But, not the other way. I do not know how to pass OmniChannel Flow variable output back to Contact flow. In this example, OmniChannel flow selects the TargetQueue for voice call routing using Business Rule Engine, stores in a flow variable (like TargetQueue) and need to pass this queue name to Amazon connect contact flow. What would be the syntax?. I am using Salesforce Service Cloud voice (SCV) and the queues are mapped between SCV and Amazon Connect. Thank you

已提问 1 年前406 查看次数
2 回答
1

There are two ways to consume a response from a Lambda function -

1. Access the response variables directly

In the contact flow block immediately after the Invoke AWS lambda function block, use the variable directly like "$.External.TargetQueue".

2. Store the response variables as contact attributes

When the variables are stored as contact attributes, they can be used thoughout the flow. To store the variables as contact attributes, use a Set contact attributes block after the Invoke AWS Lambda function block.

Configure the block as following -

Destination Type = User Defined

Destination Attribute = TargetQueue

Use attribute > Type = External

Use attribute > Attribute = TargetQueue

Refer - https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html#function-contact-flow

profile picture
已回答 1 年前
0

Hi Zafar, Thank you so much. This was very helpful. I will try your suggestion and keep you posted. Thank you again. For some reason my thank you note was not posted earlier. My apology. Thank you again.

已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则