I have a Code Task that assigns values from the survey to variables that I used to concatenate some text to send to another system. Everything is working except some of the assignments that I use to pull text from the survey responses.
In the code task, there are a bunch of assignments like this:
let q3 = `${q://QID3/ChoiceTextEntryValue}`;
let q8 = `${q://QID8/ChoiceTextEntryValue}`;
let q4 = `${q://QID4/ChoiceTextEntryValue}`;
let q6 = `${q://QID6/ChoiceTextEntryValue}`;
let q5 = `${q://QID5/ChoiceTextEntryValue}`;
These are the last 5 of 20-some. The problem only occurs with these 5.
Q3:Customer Company Name
Q8: Customer ID
Q4: Customer Contact Name
Q6: Customer Contact Email
Q5: Customer Contact Phone
For a test, I answered them as:
Q3:Customer Company Name
Q8: Customer ID
Q4: Customer Contact Name
Q6: CustomerContactEmail@example.com
Q5: Customer Contact Phone
When I look at the workflow results, I see this:
let q3 = ``;
let q8 = `Customer ID`;
let q4 = `Customer Company Name`;
let q6 = `Customer Contact Phone`;
let q5 = `Customer Contact Name`;
Can anyone help me figure out why this is happening?