web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract Form Checkbox ...
Power Automate
Answered

Extract Form Checkbox values to Excel

(0) ShareShare
ReportReport
Posted on by 7

Hey guys, 

so im trying to fill an .xls with values from my form. 
Challenge is that the results are getting stored in one cell, instead of splitting multiple answers to multiple cells. 

Is there a way to extract the values and map them seperately?

Unbenannt

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi @carstenmkiv,

     

    Please try to use functions split, skip, first, etc. to extract values from the return results of a checkbox.

    I have made the following test. In the form, I have a multiple answers enabled Choice column.

    In the flow, the multiple answers would be displayed likes below:

    1.PNG

    Then I try to use the following functions to extract values from the results.

    Add Compose action, use the following code:

    split(body('Get_response_details')?['rf50b84c83d804612a77a6dff04f34645'],',')

    Add Compose2, use the following code. The function first will get the first item in the collection, then use replace function to remove the special character “[”:

    replace(first(outputs('Compose')),'[','')

    Add Compose3, use the following code to return the second item in the collection:

    first(skip(outputs('Compose'),1))

    Add Compose4, use the following code to get the last item in the collection:

    replace(first(skip(outputs('Compose'),2)),']','')

    With all the separate items returned, you could enter each item to corresponding column.

    2.PNG3.PNG

    Hope it could be your reference. 

     

    Best regards,

    Mabel Mao

  • carstenmkiv Profile Picture
    7 on at

    Hi Mabel, @v-yamao-msft

     

    first of all: Huge thanks! 
    I got the fields seperated and they get transferred into my excel.

    Last problem i have: 
    Now every checkbox field is transferred to my excel. I just want the boxes that are ticked to fill - every "empty" checkbox should be ignored. 

    beta2

  • GabrielStJohn Profile Picture
    on at

    Hey, @carstenmkiv!

    Thank you for posting to the Flow Community Forum! It appears you have found a solution to your issue! If you feel as though your issue has been solved and you are satisfied with one of the previous replies, please click "Accept as Solution" on the reply that contains the solution so that this thread will be marked for other users to easily identify!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Microsoft Flow Community Manager

  • Community Power Platform Member Profile Picture
    on at

    I can follow the instruction and this does split the values (in my case 5 options). The trouble is the outputs don't map correctly if for instance option 1, 3 and 5 is selected (because that is still output 1, output 2 and output 3) 

     

    The Best solution would be to return a value "no" for an unselected checklist item and a "yes" (or the splitted value) for a selected checkbox. This way we could create outputs for all the options.

     

    Following my example this would look result in this: 

     

    Compose output 1 = yes

    Compose output 2 = no

    Compose output 3 = yes

    Compose output 4 = no

    Compose output 5 = yes

     

    And I can map the 5 output dynamic values to the correct Excel columns in the "Add Excel Row" action

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard