Hello again my favourite community!
I am creating a Form that is designed to output to a SharePoint list, at the moment looks like:
When a new response is submitted -> Get response details -> Create item.
Works great... but, the output for multiple select from the form sucks. So I tried fixing it, but the one user guide I could find was incorrect. Then I asked, should this be a line per selection? The answer was yes.
So, how do I split the Get response details so that it creates a new item for every response?
I'm still fairly new to Power Apps, so I'm sure it's easy, I'm just inexperienced...
Solved! Go to Solution.
@edgonzales it comes out like:
["A","B"]
I added:
Hi @Reknaw ,
It is assumed that the name of the choice field in the list and the choice in the Forms are both Status, and they both support multiple selections.
You can refer to the following methods to configure Flow.
Best Regards,
Hey there. What does the output look like when multiple things are selected? It may be that you can use the Split() function and then an Apply to Each loop to cycle through each 'thing'.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
@edgonzales it comes out like:
["A","B"]
I added:
Hi @Reknaw ,
It is assumed that the name of the choice field in the list and the choice in the Forms are both Status, and they both support multiple selections.
You can refer to the following methods to configure Flow.
Best Regards,
How do I get this to work if there are multiple multi-choice questions on the form? For example, on my Form I have a multi-choice for "Departments Engaged" and "Topics Discussed" but the above is putting the data from "Departments..." into both "Departments…" and "Topics..." SharePoint list columns...
Where do I make the break to put them into correct columns?
SOLVED
This is almost working for me. However, when it pulls into SharePoint, it doesn't recognize it as one of the choices in the column. It looks like what it's doing is pulling an ID number of -1 for every choice.
Edit: Nevermind. I was adding the values to the wrong column. 😅
Can you share the how you solved this, as I have the same question?
Hi @sazza - sorry for the late reply.
Once you get the response details, create a Compose and add a function for:
Greetings! This does not allow me to select the Variable in the Create item connector. Any ideas?
Greetings. This does not allow me to select the Variable in the Create item connector. Any ideas?
If you can share a screen shot, that would help. But I usually initiate all variables straight after the start trigger. I find it's easier to have them all in place for when you need them later on.
I was just trying out your solution, but I am getting an error back. "Item could not be created"
What am I doing wrong? I double checked that my column was set to multichoice.
I tested it without the variable and it worked... so I definitively did something wrong with the variable.
Forms multiple choice --> Sharepoint List choice column, look no further
John Liu has the solution:
https://www.youtube.com/watch?v=dNZydb1QH4o&ab_channel=JohnLiu
Thanks. The video explained this perfectly.
This is fantastic. Works perfectly. I'm just wondering how it could be modified for multiple choice fields in your List and Form? Say a Status and a Product choice field. I assume create two Initialize Var: ChoiceValue1 and ChoiceValue2, but I'm completely lost
See this video - build a Select statement for each of the choice arrays (from Forms) that you want to transport to the Sharepoint List item: https://www.youtube.com/watch?v=dNZydb1QH4o&ab_channel=JohnLiu
I tried building a second Select Statement for a second choice array (from Forms), but the Flow errors on the 2nd Select statement. The error returned when testing is:
Unable to process template language expressions in action 'Select_2' inputs at line '0' and column '0': 'The template language function 'json' parameter is not valid. The provided value 'John Smith' cannot be parsed: 'Unexpected character encountered while parsing value: B. Path '', line 0, position 0.'. Please see https://aka.ms/logicexpressions#json for usage details.'.
json(body('Get_response_details')?['rf815334523e54f0f9cc47b0de9aa13cb'])
json(body('Get_response_details')?['ra94901a53fc847e2bd64690e452fd2e8'])
Any help is appreciated.
ok, I seem to have figured out the problem, but still need help. The Select statement works when you have multiple selections from a Choice field in the Form/List. My second Choice field only has a single result. This second Choice result will not transport to the Sharepoint List.
Results of Choice 1: Product 1;Product 2;
Results of Choice 2: John Smith
for clarity, the multiple choice selection Product 1 and Product 2 transport to the MS List, but the single choice section, for Choice 2 will not.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
27 | |
22 | |
15 | |
13 |
User | Count |
---|---|
140 | |
42 | |
42 | |
35 | |
30 |