Can you pass on a object from one routing automation to the next?

Hi Everyone.

I am facing an issue where I believe I have followed the documentation correctly but I might misunderstand how to do it or it is just not possible.

So I am setting up an IVR through the use of routing automations, in my first routing automation I prompt for a MemberId (third party), my custom app then receives this input string correctly, and then it proceeds to finish the process it need to do as expected - I can verify this by looking at the logs.

But when I return renderData with a object, it hangs up the call before even playing the message of the second routing automation in the process. If I return it simply with “valid”, then it continues as intended however I need the information generated in the previous routing automation to continue the process any further.

Here is my return of my first routing automation when it is not working and hangs up before it hits the second routing automation:

 let data = {
                isEligibleForConsultation: isEligibleForConsultation,
                hasDependants: hasDependants,
                totalAvailableClaimsLeft: totalAmountOfClaims,
                memberId: memberId
            };

if (getMemberResponse.success) {
                return renderData(null, {
                    status: 200,
                    data: {
                        "valid":data, "app_variables": {},
                    }
                });
            } else {
                const error = {
                    success: false,
                    status: 404,
                    message: "The Member is not found."
                };
                return renderData(error)
            }

And here is the return of when I am able to reach the second routing automation but without the object i require:

let response = "valid";

            if (getMemberResponse.success) {
                return renderData(null, {
                    status: 200,
                    data: {
                        response, "app_variables": {},
                    }
                });
            } else {
                const error = {
                    success: false,
                    status: 404,
                    message: "The Member is not found."
                };
                return renderData(error)
            }

A quick reply will be greatly appreciated, thank you for your time. Please let me know if there are any other code snippets you require.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.