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 / Mapping MS Form choice...
Power Automate
Unanswered

Mapping MS Form choice field to Sharepoint list choice field

(0) ShareShare
ReportReport
Posted on by

I have an MS form that has a choice question where there is only one answer. I have a SharePoint list where the choice column can have only one answer. BUT, the options in the FORM are different than the options in the SharePoint list.

How can I get the option selected in the FORM and map/translate to a different name to use when creating the item in the list?

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @AnnetteM You can use a Variable and a Switch action. Insert the form selection into the On field of the Switch action. 

     

    Ensure that the text you enter into the Equals field matches the Form selection exactly. 

     

    Then, set the variable to match your SP choices.

    creativeopinion_0-1694717968030.png

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

     

  • Verified answer
    Caspar_Rubin Profile Picture
    831 on at

    Hey

     

    I hope I understood correctly... you could do it using a variable and a "switch" action.

    Caspar_Rubin_0-1694718182383.png

     

    Initialize a new variable called "SharePointValue" and set it to String. Leave the value empty for now.

     

    Add a "Switch" action and as the "On" value you select your Forms Value from the Choice Field from the "Get response details" action.

     

    Inside the switch, write the Form value in the "Equals" field and below it add a "Set variable" action. In that "Set variable" action you simple select the variable you created at the start (SharePointValue), and set its Value to the SharePoint Choice you want to add to SharePoint, if that Form Value has been selected. You can add multiple Switch "Cases" if you have multiple values you want to cross-reference. 

    Then in your "Create item" action, simply select the variable (SharePointValue) you filled in the Switch action. It's going to hold the value you want, not the one that's coming from the Form.

     

    In my example, the Form has a choice value of "FormValueXYZ" and if the user selects that, in SharePoint the value would then be "SharePointValueABC".

     

    Cheers

  • AnnetteM Profile Picture
    on at

    I was thinking of a switch but thought I could do it with an if/then statement. When I base the switch upon the Forms field, I have to enter the text as ["ABC"] as that is what is returned by the form response. Is there a way to strip the [ and " from the value or is it just as much work to do that, than to make the On value match?

  • Caspar_Rubin Profile Picture
    831 on at

    Hey,

     

    if you want to do it light-weight, you can of course skip all the switch and variable stuff and go with an expression. It's not that scalable but if you only every have 1 value to change, why not...

     

    For example, the following would turn ABC value (coming from forms) into XYZ in SharePoint and would return nothing if nothing or something else than ABC comes from the Form...

     

     

    if(equals(outputs('Get_response_details')?['body/YOURQUESTION'], 'ABC'), 'XYZ', null)

     

     

    Caspar_Rubin_0-1694719732241.png

     

     

     Cheers

  • AnnetteM Profile Picture
    on at

    Thanks for the reply. You are right. The switch statement is more scalable and easier for someone to follow! Since the value coming from the form response was encased in [ and " I created a compose action that stripped that out and just gave me text. Then I was able to use that text in the EQUALS part of the switch case and it worked beautifully. Thank you!!!

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard