FD: Cannot add data pill of type 'List' to subflow field of type 'Array.string'

kim-lindgren
Kilo Sage

Hi,

 

The subflow field 'Approvers list' (used inside of an ordinary flow) is of type Array.string but it cannot take a data pill of type 'List'. In fact, I have gone through many different data pills and dot-walked fields and there doesn't seem to be a single field that the Approvers list will accept. I can only insert variables in the Approvers list child field, but it seems it can only return a single value. 

 

kimlindgren_0-1699012963505.png

kimlindgren_1-1699013100596.png

 

If you have an idea of how to solve this, or to find another way to retrieve the list values (a list with user records), I would be most grateful.

 

Regards,

Kim

1 ACCEPTED SOLUTION

kim-lindgren
Kilo Sage

Here is my rather imperfect solution. I'm afraid I cannot share much (company policy) but I managed to use the child of the array.string field ("Drag and drop approvers' list here") to input the list from the flow, then retrieve it in the subflow as a comma-separated string like this: fd_data.subflow_inputs.approvers_list[0].

 

I still find it rather odd that I cannot use the actual list field, which must instead be left empty, but at least this is a functioning workaround.

 

kimlindgren_0-1699023515863.png

 

View solution in original post

4 REPLIES 4

Vishal Birajdar
Giga Sage

Hi @kim-lindgren 

 

Can you let us know which data-pill you are setting using  drag& drop...!!

 

May be can you share full screenshot of your subflow...

 

This is how I have achieved...!!!

 

1.Created flow variable 

VishalBirajdar_0-1699014689215.png

 

2. Using flow logic - set the flow variables 

Drag & drop your arrayList datapill

VishalBirajdar_1-1699014807720.png

 

3. Drag & drop flow variable in your record

 

VishalBirajdar_2-1699014877961.png

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Thanks for your careful help, I realize though that I was very unclear, I am not trying to add the list *in the subflow*, but it is a subflow field inside an ordinary flow where I am trying to add the list to an Array.string field. And there it is simply a case of the field not accepting any input.

Sandeep Rajput
Tera Patron
Tera Patron

@kim-lindgren Make sure that the data pill you are assigning here is a comma separated string of sys_id here.

kim-lindgren
Kilo Sage

Here is my rather imperfect solution. I'm afraid I cannot share much (company policy) but I managed to use the child of the array.string field ("Drag and drop approvers' list here") to input the list from the flow, then retrieve it in the subflow as a comma-separated string like this: fd_data.subflow_inputs.approvers_list[0].

 

I still find it rather odd that I cannot use the actual list field, which must instead be left empty, but at least this is a functioning workaround.

 

kimlindgren_0-1699023515863.png