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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Get MS Form responses

(1) ShareShare
ReportReport
Posted on by

Hi, Im getting the responses from a MS Form, but Im getting troubles when I try to get the response from a question that has 2 words separated by a space

 

Question example

JosueViq_0-1675458746162.png

So in the json I get something like this

 

 

 

{
 "@odata.etag": "",
 "ItemInternalId": "",
 "ID": "32",
 "Start time": "2023-02-03T14:38:49.000Z",
 "Completion time": "2023-02-03T14:39:15.000Z",
 "Email": "",
 "Name": "",
 "Ticket / RFC number\n": "34747",
 "Description": "sjfjsfsf",
 "Comments": "najfsnaksfj\nfdsfdf\ndgdg",
 "Ticket Stage\n": "To be checked",
 "Category": "RFC Follow up"
}

 

 

And in the select Im using item()?['Ticket / RFC number'] to get the respective value and show it in an HMTL table in an email, but in the table that space for Ticket / RFC number is blank

JosueViq_1-1675459176865.png

This is the final HTML table, all the values that come from questions that have blank spaces between words are in blank

JosueViq_2-1675459301876.png

What is the correct format to get those values in the select?

I have the same question (0)
  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: Get MS Form responses

    Hi   

    In your JSON data you have 

     

    "Ticket / RFC number\n": "34747",

     

    Not sure why you have a \n here?

     

    Also your expression looks like this

     

    item()?['Ticket/RFC number'] Here there are no spaces.

     

    Try the below

    item()?['Ticket / RFC number']

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Get MS Form responses

    Hi @abm, thanks for the response

    Im not sure why there is a /n either, Im redacting the question with no line break

    JosueViq_0-1675467949762.png

    {
     "@odata.etag": "",
     "ItemInternalId": "************",
     "ID": "32",
     "Start time": "2023-02-03T14:38:49.000Z",
     "Completion time": "2023-02-03T14:39:15.000Z",
     "Email": "example@gmail.com",
     "Name": "example name",
     "Ticket/RFC number\n": "34747",
     "Description": "sjfjsfsf",
     "Comments": "najfsnaksfj\nfdsfdf\ndgdg",
     "Ticket Stage\n": "To be checked",
     "Category": "RFC Follow up"
     }

     

    I change the question to "Ticket/RFC number", in the select Im using the same item()?['Ticket/RFC number'] and is not working, the values in the html table still empty
    Also try with item()?['Ticket/RFC number\n'] but still not working

    JosueViq_1-1675468298520.png

    This is the full input of the select

    [
     {
     "@odata.etag": "",
     "ItemInternalId": "************",
     "ID": "30",
     "Start time": "2023-02-03T14:14:36.000Z",
     "Completion time": "2023-02-03T14:15:42.000Z",
     "Email": "example@gmail.com",
     "Name": "example name",
     "Ticket/RFC number\n": "35353",
     "Description": "RFC Follow up test",
     "Comments": "",
     "Ticket Stage\n": "Pending",
     "Category": "RFC Follow up"
     },
     {
     "@odata.etag": "",
     "ItemInternalId": "************",
     "ID": "32",
     "Start time": "2023-02-03T14:38:49.000Z",
     "Completion time": "2023-02-03T14:39:15.000Z",
     "Email": "example@gmail.com",
     "Name": "example name",
     "Ticket/RFC number\n": "34747",
     "Description": "sjfjsfsf",
     "Comments": "najfsnaksfj\nfdsfdf\ndgdg",
     "Ticket Stage\n": "To be checked",
     "Category": "RFC Follow up"
     }
    ]

     

    And this is the output

    [
     {
     "Ticket / RFC number": null,
     "Ticket Stage": null,
     "Description": "RFC Follow up test",
     "Comments": "",
     "Last Assignee": "example name"
     },
     {
     "Ticket / RFC number": null,
     "Ticket Stage": null,
     "Description": "sjfjsfsf",
     "Comments": "najfsnaksfj\nfdsfdf\ndgdg",
     "Last Assignee": "example name"
     }
    ]



    As you can see, if the question in the form has two words separated by a space the value will be null, if I change the question to only one single word it will work but I need to put two or more words for users to understand

  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: Get MS Form responses

    Hi @Anonymous 

     

    Thanks for your quick reply.

     

    Interesting issue. Could you try deleting that question in Forms and add it again without the slash. See that works. Then add the slash back again.

     

    Thanks

  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: Get MS Form responses

    Hi @Anonymous 

     

    I did tried the below.

     

    image.png

     

    Here is my flow

     

    image.png

     

    Here is my result

    image.png

     

     

    Not sure why you getting the question name. See above where I get the ID of the question not the text. 

     

    Thanks

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Get MS Form responses

    @abmI already tried your suggestions above, but still not working, did you do something different when creating the form? Maybe something related with format? Is weird that you are getting a ID and Im getting the exact question

  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: Get MS Form responses

    Hi @Anonymous 

     

    No I haven't done anything different. Your response is better 😃 which contains question. Try deleting that question and remove the back slash '/' call something like Ticket  or RFC number

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard