Create appended prompt name via data table lookup

I'm having some issues trying to create dynamic prompt names via a data table lookup and the Append function in Architect.

For example, I do a data table lookup based on the DID and return an app name. I then use the append function to combine the app name and a number/word - Append(Flow.varAppName, "Start") - and use this final appended string to "Find User Prompt".

The prompt lookup continually fails. When looking at the call attributes in Dev Tools, I can see the prompt name string is being created with an unexpected line break character in the middle - "attrStartPrompt": "SurveyTest\nStart"

Does anyone know why this may be and a possible fix? Is there a better way to go about this?

Thanks!

Hello,

So it means that your Flow.varAppName already contains the line break ("SurveyTest\n").
If you are retrieving that value from a data table, it probably means that you have stored the string with the line break.
So you should try not to store the line break in your data table.

Otherwise you could try to replace the line break with an empty string (in your Architect flow).
I have not tried but I assume this might work: Replace(attrStartPrompt, "\n", "")

Regards,

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