cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarcRohde
Advocate II
Advocate II

Creating A Link to a specific form response

I'm trying to figure out if there is a way to format a linke to a reponse in MS Forms.  I would like to add a 'click here' type of link to an e-mail flow each time a response is submitted.  I don't really need to emebed the detail variables into the message since the users who need the data will all have access to the form responses.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Brad_Groux
Community Champion
Community Champion

The best way to have full granular access to all Form responses is to create a SharePoint List when a new response is received, and call the corresponding List Column for that item into the Email step(s). You could quickly start with the Record form responses in SharePoint template, and then include a link to the List item in the Send Email action.

For a more streamlined approach, you could also use the Send an email to responder when response submitted in Microsoft Forms template. I personally like having an easy to access, read, and use answer repository, which is why I record all of my Form responses to a SharePoist List. As an example, if in the future you want to expand your Flow based upon answers provided in the form to route the answers to only those it is specific to, you could add use conditions with logical expressions and parallel branches. 

Further reading if you do choose to expand:

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

goncaloperes
Advocate I
Advocate I

The URL to access a given response is something like this
https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=RESPONSEID
 
When one accesses a form, one should be able to get the ID from the URL. In the following image, one will see how to get it from the response collection screen, but the ID appears in more views.
 
goncaloperes_0-1688049792994.png
 
Use that ID to update the link above in the FORMID.
 
On another hand, considering that anytime one deletes all the answers that were submitted in a given form, the ID of the response in the form will not restart, but the ridx in the URL always starts from 0, for most cases it is convenient to have a variable named responseID.
 
Given that, I would recommend the following flow:
 
1. When a new response is submitted
2. Get response details
3. Initialize variable: responseURL (String)
4. Initialize variable 2: responseID (Integer)
5. Set variable
6. Set variable 2
7. Send an email (V2)
goncaloperes_1-1688050215781.png

 

If one has deleted various answers and the ID of the Response in the form is 7, considering that the ridx in the URL starts at 0, add the following expression

sub(int(triggerOutputs()?['body/resourceData/responseId']), 7)
If one didn't delete any answer, considering that the ridx starts at 0 and the ID of the first Response is 1, then one can use the following
sub(int(triggerOutputs()?['body/resourceData/responseId']), 1)
 
And then in the Set variable 2, use the following expression
concat('https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=', variables('responseID'))
 
 In the email body, then one can do something like this:
goncaloperes_2-1688050847164.png

 

View solution in original post

16 REPLIES 16
Brad_Groux
Community Champion
Community Champion

The best way to have full granular access to all Form responses is to create a SharePoint List when a new response is received, and call the corresponding List Column for that item into the Email step(s). You could quickly start with the Record form responses in SharePoint template, and then include a link to the List item in the Send Email action.

For a more streamlined approach, you could also use the Send an email to responder when response submitted in Microsoft Forms template. I personally like having an easy to access, read, and use answer repository, which is why I record all of my Form responses to a SharePoist List. As an example, if in the future you want to expand your Flow based upon answers provided in the form to route the answers to only those it is specific to, you could add use conditions with logical expressions and parallel branches. 

Further reading if you do choose to expand:

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

RobElliott
Super User
Super User

Hi @MarcRohde , there's no way to add a link to the response itself although you can add all the questions and answers in the response into your email. If you saved the response to a SharePoint list then you could add a Link to item which would open the list item in SharePoint. But you can't link to the actual response.

Rob
Los Gallardos


@RobElliott wrote:

Hi @MarcRohde , there's no way to add a link to the response itself although you can add all the questions and answers in the response into your email. If you saved the response to a SharePoint list then you could add a Link to item which would open the list item in SharePoint. But you can't link to the actual response.

Rob
Los Gallardos


The Forms connector has rather limited functionality, mainly because Forms itself does. In a Form's responses, you can only see the basic metrics that are captured as a whole. Currently there is not a unique API-based record that you can call and access from the Forms website. 

Currently you can view an individual response from the website, but it is several clicks in, and it actually displays as a custom view of the Form's design page (see red box):FormsResponsePage.png

If you would like a Microsoft Forms API, which would almost certainly expand the Connector's abilities, you can vote on the API for Microsoft Forms request on the Forms User Voice. If you'd like to expand the functionality of the Forms connector for Flow, please consider submitting it to the Flow Ideas page, where it can be voted on by other users, and tracked and commented on by the Flow team.

One reason that Microsoft likely won't develop an API for Forms, is that it is meant for Office 365 customers - who have access to SharePoint. So, developing an API for Forms would be re-inventing the wheel as it would be nearly identical in scope to the API for SharePoint Lists. Those same responses can also be sent to any data source (SQL, Cosmos DB, Excel, Google Sheets, etc) - so think of Forms as a data gathering tool, not a data storage or access tool.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thanks,

 

I was looking deeper at the link that gets sent to the respondant and the format is pretty simple and could be recreated but what looks like is missing from the service call in the flow is the ResponseGetToken

 

https://forms.office.com/Pages/ResponseDetailPage.aspx?id={form id}&rid=5&GetResponseToken={request token}

 

I know the form id, the request ID is in the dynamic date but the get token kills it.

Clifferton
Helper II
Helper II

I think I found a way to do this.

 

the link that displays to a form owner when they manually access the responses looks like this.

https://forms.office.com/pages/designpagev2.aspx?lang=en-US&origin=OfficeDotCom&route=Start&sessionid={SESSIONID}&subpage=design&id={FORMID}&analysis=true&tab=0&topview=SurveyResults&qid={QIDWHATEVERTHATIS}&ridx={ID-1}

 

You can carefully trim that URL to something like this.

https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id={FORMID}&analysis=true&tab=0&topview=SurveyResults&ridx={ID-1} 

 

Then you only need to

  1. replace {FORMID} with the form Id (without curly braces) and,
  2. replace {ID-1} with the ID number in the responses excel sheet minus 1. So to see responses for ID 3, enter 2 in the url.

 

Flow would look something like:

When response submitted

Get response details

Get data from excel

create string variable

compose (to create url and store in the string variable)

Send email with composed link.

smurray
Regular Visitor

Thank you Clifferton!

 

Your response worked perfectly for us. I used the 'Initialize Variable' step at the top of the flow, then I put the flow ID there and use that variable to fill it in for all later steps (makes it easier since we are copying this flow to use for other forms). I then used the 'Initialized Variable' step again and have it fill the response ID from the trigger. After that, I use the 'Decrement Variable' step to lower it by one. I then used both variables in the link you provided above and it works perfectly.

Awesome! I'm glad it worked for y'all! 

Hello, I'm trying to accomplish this but I don't see a "get data from excel" option in the flows. Could you help me figure this out? I have very basic knowledge of Power Automate. If possible could you post an example of this flow?

Cliffferton
Regular Visitor

This page has a bunch of good information on how the Excel connector works.

I haven't built a flow like this one and it kind of depends on exactly what you're trying to do.

You could List rows present in a table if you want all the data from the whole table.

Or if you know what row you want, you could use Get a row.

 

In either case, the number in the ID column is what you'll need to modify to display the correct response.

 

Clifferton's solution worked for me.

Just note I had to subtract 1213 instead of 1. It seems to be related to the row number the item is at in the Excel file with all the responses you get in the "Open in Excel" button from the form's main page.

For some reason in my case we only had some 500 items but the ids started in the 1200s, so for instance the item with Response ID 1640 was in the row 429 and the "ridx" i had to put in the link was 427. I guess it was accounting for a couple header files or something.

Cliffferton
Regular Visitor

The ID column is sequential no matter what data exists in the excel sheet. If prior responses were deleted from the excel sheet, new responses would continue to come in with higher ID numbers.

goncaloperes
Advocate I
Advocate I

The URL to access a given response is something like this
https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=RESPONSEID
 
When one accesses a form, one should be able to get the ID from the URL. In the following image, one will see how to get it from the response collection screen, but the ID appears in more views.
 
goncaloperes_0-1688049792994.png
 
Use that ID to update the link above in the FORMID.
 
On another hand, considering that anytime one deletes all the answers that were submitted in a given form, the ID of the response in the form will not restart, but the ridx in the URL always starts from 0, for most cases it is convenient to have a variable named responseID.
 
Given that, I would recommend the following flow:
 
1. When a new response is submitted
2. Get response details
3. Initialize variable: responseURL (String)
4. Initialize variable 2: responseID (Integer)
5. Set variable
6. Set variable 2
7. Send an email (V2)
goncaloperes_1-1688050215781.png

 

If one has deleted various answers and the ID of the Response in the form is 7, considering that the ridx in the URL starts at 0, add the following expression

sub(int(triggerOutputs()?['body/resourceData/responseId']), 7)
If one didn't delete any answer, considering that the ridx starts at 0 and the ID of the first Response is 1, then one can use the following
sub(int(triggerOutputs()?['body/resourceData/responseId']), 1)
 
And then in the Set variable 2, use the following expression
concat('https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=', variables('responseID'))
 
 In the email body, then one can do something like this:
goncaloperes_2-1688050847164.png

 

Hi Clifferton - I'm a bit of a power automate newbie, but I'm figuring it out pretty well. Would you be able to supply images of exactly what to insert into the fields for these two steps: 

create string variable

compose (to create url and store in the string variable)

 

Thanks!

Hi goncaloperes,

 

I tried your method and everything worked except when the email is received, the link gets an error that the form doesn't exist. I have attached a view of the process as it is now. Can you help?

KES2,

Sorry for the late reply. Here is a page on using variables in Power Automate. You need to "initialize a variable" first. In that step, you'll name the variable and choose the type of variable (string).

The compose step is a bit more difficult to explain, but if you look at @goncaloperes's post right above yours, you'll see a clearer explanation.

 

In the future, if you have a question that does not fit the topic of a discussion, such as how to use variables, you should probably start a new thread.

 

~C

Angelwing,

Your images don't show where or how you modified the URL to create the link to the form responses. If you include more detail there, we might be able to help.

Helpful resources

Announcements

Back to Basics: Tuesday Tip #2: All About Community Ranks

This weekly series is our way of helping the amazing members of our community--both new members and seasoned veterans--learn and grow in how to best engage in the community! Each Tuesday, we will feature new areas of content that will help you best understand the community--from ranking and badges to profile avatars, from Super Users to blogging in the community. Our hope is that this information will help each of our community members grow in their experience with Power Platform, with the community, and with each other!   Have you ever wondered how your fellow community members earn the different ranks available? What is the difference between an Advocate and a Helper, a Solution Sage and a Community Champion? In today's #TuesdayTip, we share the secrets and tips to help YOU keep your ranking growing--and why it's so important to our communities. What are community ranks? - Power Platform Community (microsoft.com)   Get the details in this Knowledge Base article that shows you what ranks are, how they are achieved, and what they mean to you as you engage with other community members on a regular basis. Once you start your journey in the community, ranking up, you'll find the benefits. So get busy with those kudos, solutions, and more! We can't wait to see how you rank!That's it for this week. Tune in for more Tuesday Tips next Tuesday and join the community as we continue to get "Back to Basics."

It's #MPPC23 Week! Check Out the Community Sessions and Events Happening in Vegas

After all the planning and preparing, the annual Microsoft Power Platform Conference is finally here! We are excited to see so many of our community in Las Vegas this week. To help make sure you don't miss any of the workshops, sessions, and events we have planned, make sure to check out this handy Community One-Sheet, and download the pdf today! Make sure to stop by the Community Lounge to meet @hugobernier, @EricArcher, @heaher_italent, and @AshleyFelts from our team!    

Join Us for the First-Ever Biz Apps Community User Group Meeting: Live from MPPC23

      Join us for the first-ever the Biz Apps Community User Group meeting live from the Power Platform Conference! This one hour user group meeting is all about discovering the value and benefits of User Groups! Discover how you can find a group in your local area or about specific topics where you can learn new skills and meet like-minded people as a user group member.   Hear from User Group leaders about why they do what they do and what resources they receive to help them succeed as community ambassadors. If you have never attended a User Group meeting before, this will be a great introduction! We hope you are inspired to find a group that meets your unique interests!   October 5th at 2:15 pm Pacific time   If you're attending #MPPC23 in Las Vegas, join us in person! Find out more here: https://powerplatformconf.com/#!/session/Biz%20Apps%20Community%20User%20Group%20Meeting%20-%20Live%20from%20MPPC/6172   Not at MPPC23? Attend vvirtually by registering here: https://aka.ms/MPPCusergroupmeeting2023    If you can't attend this meeting live, don't worry! We will record this meeting and share it with the Community at powerusers.microsoft.com 

Back to Basics: Tuesday Tip #1: All About YOUR Community Account

We are excited to kick off our new #TuesdayTIps series, "Back to Basics." This weekly series is our way of helping the amazing members of our community--both new members and seasoned veterans--learn and grow in how to best engage in the community! Each Tuesday, we will feature new areas of content that will help you best understand the community--from ranking and badges to profile avatars, from Super Users to blogging in the community. Our hope is that this information will help each of our community members grow in their experience with Power Platform, with the community, and with each other!     This Week's Tips: Account Support: Changing Passwords, Changing Email Addresses or Usernames, "Need Admin Approval," Etc.Wondering how to get support for your community account? Check out the details on these common questions and more. Just follow the link below for articles that explain it all.Community Account Support - Power Platform Community (microsoft.com)   All About GDPR: How It Affects Closing Your Community Account (And Why You Should Think Twice Before You Do)GDPR, the General Data Protection Regulation (GDPR), took effect May 25th 2018. A European privacy law, GDPR imposes new rules on companies and other organizations offering goods and services to people in the European Union (EU), or that collect and analyze data tied to EU residents. GDPR applies no matter where you are located, and it affects what happens when you decide to close your account. Read the details here:All About GDPR - Power Platform Community (microsoft.com)   Getting to Know You: Setting Up Your Community Profile, Customizing Your Profile, and More.Your community profile helps other members of the community get to know you as you begin to engage and interact. Your profile is a mirror of your activity in the community. Find out how to set it up, change your avatar, adjust your time zone, and more. Click on the link below to find out how:Community Profile, Time Zone, Picture (Avatar) & D... - Power Platform Community (microsoft.com)   That's it for this week. Tune in for more Tuesday Tips next Tuesday and join the community as we get "Back to Basics."

Announcing the MPPC's Got Power Talent Show at #MPPC23

Are you attending the Microsoft Power Platform Conference 2023 in Las Vegas? If so, we invite you to join us for the MPPC's Got Power Talent Show!      Our talent show is more than a show—it's a grand celebration of connection, inspiration, and shared journeys. Through stories, skills, and collective experiences, we come together to uplift, inspire, and revel in the magic of our community's diverse talents. This year, our talent event promises to be an unforgettable experience, echoing louder and brighter than anything you've seen before.    We're casting a wider net with three captivating categories:  Demo Technical Solutions: Show us your Power Platform innovations, be it apps, flows, chatbots, websites or dashboards... Storytelling: Share tales of your journey with Power Platform. Hidden Talents: Unveil your creative side—be it dancing, singing, rapping, poetry, or comedy. Let your talent shine!    Got That Special Spark? A Story That Demands to Be Heard? Your moment is now!  Sign up to Showcase Your Brilliance: https://aka.ms/MPPCGotPowerSignUp  Deadline for submissions: Thursday, Sept 28th    How It Works:  Submit this form to sign up: https://aka.ms/MPPCGotPowerSignUp  We'll contact you if you're selected. Get ready to be onstage!  The Spotlight is Yours: Each participant has 3-5 minutes to shine, with insightful commentary from our panel of judges. We’re not just giving you a stage; we’re handing you the platform to make your mark.     Be the Story We Tell: Your talents and narratives will not just entertain but inspire, serving as the bedrock for our community’s future stories and successes.    Celebration, Surprises, and Connections: As the curtain falls, the excitement continues! Await surprise awards and seize the chance to mingle with industry experts, Microsoft Power Platform leaders, and community luminaries. It's not just a show; it's an opportunity to forge connections and celebrate shared successes.    Event Details:  Date and Time: Wed Oct 4th, 6:30-9:00PM   Location: MPPC23 at the MGM Grand, Las Vegas, NV, USA  

September User Group Success Story: Reading Dynamics 365 & Power Platform User Group

The Reading Dynamics 365 and Power Platform User Group is a community-driven initiative that started in September 2022. It has quickly earned recognition for its enthusiastic leadership and resilience in the face of challenges. With a focus on promoting learning and networking among professionals in the Dynamics 365 and Power Platform ecosystem, the group has grown steadily and gained a reputation for its commitment to its members!   The group, which had its inaugural event in January 2023 at the Microsoft UK Headquarters in Reading, has since organized three successful gatherings, including a recent social lunch. They maintain a regular schedule of four events per year, each attended by an average of 20-25 enthusiastic participants who enjoy engaging talks and, of course, pizza.   The Reading User Group's presence is primarily spread through LinkedIn and Meetup, with the support of the wider community. This thriving community is managed by a dedicated team consisting of Fraser Dear, Tim Leung, and Andrew Bibby, who serves as the main point of contact for the UK Dynamics 365 and Power Platform User Groups.   Andrew Bibby, an active figure in the Dynamics 365 and Power Platform community, nominated this group due to his admiration for the Reading UK User Group's efforts. He emphasized their remarkable enthusiasm and success in running the group, noting that they navigated challenges such as finding venues with resilience and smiles on their faces. Despite being a relatively new group with 20-30 members, they have managed to achieve high attendance at their meetings.   The group's journey began when Fraser Dear moved to the Reading area and realized the absence of a user group catering to professionals in the Dynamics 365 and Power Platform space. He reached out to Andrew, who provided valuable guidance and support, allowing the Reading User Group to officially join the UK Dynamics 365 and Power Platform User Groups community.   One of the group's notable achievements was overcoming the challenge of finding a suitable venue. Initially, their "home" was the Microsoft UK HQ in Reading. However, due to office closures, they had to seek a new location with limited time. Fortunately, a connection with Stephanie Stacey from Microsoft led them to Reading College and its Institute of Technology. The college generously offered them event space and support, forging a mutually beneficial partnership where the group promotes the Institute and encourages its members to support the next generation of IT professionals.   With the dedication of its leadership team, the Reading Dynamics 365 and Power Platform User Group is poised to continue growing and thriving! Their story exemplifies the power of community-driven initiatives and the positive impact they can have on professional development and networking in the tech industry. As they move forward with their upcoming events and collaborations with Reading College, the group is likely to remain a valuable resource for professionals in the Reading area and beyond.  

Users online (3,772)