Use data to choices

(Marc Louie Cabigas) #1

How can I use this json data to make it as in my question choices. I did use HTTP Request and i got this data but I don’t know how to call this and make this as a choices.
I did read the documentations about data-outputs, webhook but can’t figure it out.
Please anyone help me.

Data
{
“57”: “Martial Arts School”,
“59”: “Eulmar Karate Dojo”,
“61”: “Red Sun Martial Arts”,
“64”: “Crouching Tiger Club”,
“102”: “Kung Fu University”,
“194”: “Black Knight School of Awesomeness”,
“229”: “TMAB.S”,
“232”: “Alliza Martial Arts”,
“233”: "Bless Martial Arts ",
“234”: “Azil University”
}
Example choices from json data
choices1: “Martial Arts School”
choices 2: “Eulmar Karate Dojo”
choice3: “Red Sun Martial Arts”
etc.

(Daniel Beckett) #2

It looks like you’d need to use something like

{{task.data__.57}}
Where ‘task’ is the name of webhook task.

You would insert those values into the ‘Choice’ fields on the Ask a Question action so that it pulls them through from the webhook.

Hope that helps - if you still have trouble with this then it would be best if you could email support@flowxo.com with a share of your flow. :slight_smile:

1 Like
(Marc Louie Cabigas) #3

@DanielBeckett

Thank you Sir, I did not figure this out lols, but yesterday when I did coffee this solution flashing to my mind lols

(Anders Eidergard) #4

Not quite sure I follow this one.

I’m in the same situation.
I have a list of things in a google spreadsheet and would like to have that list become the choices for the user.

As I add new things to the list I want it to adapt and read those items as well (on the next call).

Problem is that it only creates a choice item for the very first line of my spreadsheet.

Is it even possible to create a set of choices from a list?

1 Like
(Daniel Beckett) #5

Hi @Anders_Eidergard

You can use the data from your Google Sheet by using a search / get or list action to get the data into your flow from the sheet so that you can insert it as choice options in ‘Ask a Question’.

The following tutorials may help but if you’re still not sure then please email support@flowxo.com and we’ll assist further :slight_smile:

1 Like
(Anders Eidergard) #6

Thanks Daniel.
I’ll have a new read through them so I’m not missing something.

1 Like