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

2 Answers
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
answered a year ago
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.

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions