MS Flow iterate “;” separated values
-
20-02-2021 - |
문제
I am using SharePoint online as a platform where I have a custom form which has multiselect dropdown control. I'm saving the values of the control using ";" in the single line of text field.
Now I want to iterate each of the values which are saved in the field using MS Flow and for example if there are 4 values such as "abc;xyz;hi;hello", I then want these values to be inserted in another list with each value being an item (row) with title column.
Any help on this would be appreciated.
다른 팁
You can follow below approach:
- Add Compose action and use
split()
function to split the string by;
and get array of substrings. - Then use Apply to each action on Output of compose action
- Inside Apply to each action create a new item in 2nd list using Create item action.
Working flow in action:
Split function formula:
split(outputs('Get_item')?['body/Title'], ';')
Where outputs('Get_item')?['body/Title']
is a column with multiple values separated by ;
Input to Flow:
Output - items create in SharePoint list:
For more information check below references: