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.
Solved! Go to Solution.
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!
https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=RESPONSEID
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)
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)
sub(int(triggerOutputs()?['body/resourceData/responseId']), 1)
concat('https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=', variables('responseID'))
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!
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):
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.
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
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.
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?
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.
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.
https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=RESPONSEID
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)
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)
sub(int(triggerOutputs()?['body/resourceData/responseId']), 1)
concat('https://forms.office.com/pages/designpagev2.aspx?lang=en-US&&subpage=design&id=FORMID&analysis=true&tab=0&topview=SurveyResults&ridx=', variables('responseID'))
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!
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.
I'm not very experienced with initializing and setting variables. Are you able to open those steps to show the code inside?
The way I'm doing it must be wrong since the URL that results defaults to the first response vs. most recent. The ridx number increases by one each time, but how to do I code it to go to the most recent ridx?
I have tried this multiple times and keep getting the error- "enter a valid integer". Can you clarify for me what goes in each of these boxes? I assumed this went into "initializing variable 2", but I keep receiving the "enter a valid integer" error
3. Initialize variable: responseURL (String)
4. Initialize variable 2: responseID (Integer)
5. Set variable
6. Set variable 2
@kinnett You can do the whole thing with the compose action too, rather than using variables. I used variables because they were easier to use in my multi-level flow. Using compose simplifies the whole thing quite a bit. You could even do it in one compose action, but I think it's easier to break up math actions from string actions.
Here's a simple example.
Inside the subtraction compose action, have the following expression which adds negative 1 to the response ID. @Amira703 If you just grab the response ID from the dynamic content you get from the Get Response Details action, it will be the one that was most recently submitted.
add(-1,triggerOutputs()?['body/resourceData/responseId'])
Inside the Compose URL action, I have this input. This prevents you from having to muck around with concatenate expressions. The dynamic content here is just the output from the subtraction compose action.
Then in the email, I find it easier to create the link within the HTML code instead of trying to get dynamic content into the WYSIWYG editor. The dynamic content here is the output from the URL compose action.
Then the URL is actually a link in the email so folks can just click it instead of having to copy and paste.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages