Hello All,
I have a created a microsoft forms which triggers a flow to save the data on SharePoint excel and then sends the same details via email.
Flow gets triggered when new entry is made in forms. I am reading forms data using the following formula
@{first(triggerBody()?['value'])?['resourceData']['responseId']}
The forms and flow works fine but it updates data incorrectly where my form is displaying Multiple checkbox option.
For multiple checkbox section, flow is reading the data from Forms as
"rc07d5055e2eb4cc8936262f0e3ba9aeb": "[\"Option 1\",\"Option 2\",\"Option 5\"]"
and then putting the values in the excel sheet as ["Option 1","Option 2","Option 5"]. How can I remove the [" when flow writes data to excel.
Solved! Go to Solution.
Hi @Anup_Behera ,
You could try removing the symbol using Expression below.
Expression reference:
replace(replace(replace(body('Get_response_details')?['rce25a6a0207f436993c3f09cb9c41c02'],'","',','), '["',''), '"]','')
body('Get_response_details')?['rce25a6a0207f436993c3f09cb9c41c02'] , This section is configured according to the Dynamic content of your own form.
For example, I created a form with a multiple choice, the name of Question is checkbox:
Image reference:
Flow run history:
Hope it helps.
Best Regards,
Hi @Anup_Behera ,
You could try removing the symbol using Expression below.
Expression reference:
replace(replace(replace(body('Get_response_details')?['rce25a6a0207f436993c3f09cb9c41c02'],'","',','), '["',''), '"]','')
body('Get_response_details')?['rce25a6a0207f436993c3f09cb9c41c02'] , This section is configured according to the Dynamic content of your own form.
For example, I created a form with a multiple choice, the name of Question is checkbox:
Image reference:
Flow run history:
Hope it helps.
Best Regards,
Hi @v-bacao-msft ,
I have the same issue where my form has a multiple answers question and I'm using Flow to send the answers to a Sharepoint list and to Excel.
The form choices in my question are:
1-12
11-24
27-48
The flow sends the response to SP/Excel like this:
["0-12","11-24","27-48"]
I tried your solution and the flow runs successfully but the output is still:
["0-12","11-24","27-48"] in SP/Excel
When looking at the flow run history, it's referenced like this:
Any ideas where I might be going wrong?
Thanks,
Lee
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
43 | |
38 | |
34 | |
27 |
User | Count |
---|---|
47 | |
38 | |
32 | |
32 | |
31 |