I’m puzzled with an error while trying to fetch data from google sheets from a Code Service output.
When I used Seach Rows and a random number generator to randomly fetch a message from Google Sheets, and returned the result in a variable using resolve in the Code Service,
botReply = "{{google_sheets_search_rows_fetch_data.results_+_gsx:replyorders}};
then used the Result output of the code service to display the random messages in a Bot - Send a Message Service
{{code_generate_msgs.result__msg}}
the following error would occure at run time:
Script Error: SyntaxError: Invalid or unexpected token
But when using Seach Rows… directly in the Bot - Send a Message Service the random messages would be displayed without any problems.
{{google_sheets_search_rows_fetch_data.results_+_gsx:replyorders}}
Is there a bug somewhere or might I be doing something wrong?
Thank you,