cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmorley
Resolver I
Resolver I

Microsoft Forms Attachments to User Story in Azure Devops Projects

Hi,

 

I have created a flow to obtain details from a form which then creates a user story on our AD Project Board, a lot of users have asked if they could attach files to the form and these get added to the story.

 

I can find details online on how to add to a sharepoint list or to an email for forwarding, but can't find anything to add to a user story.

 

Does anyone know if this can be done or will be available in a future update or must we continue to complete form without attachments, send email back to end user with the id and then get them to send us the attachments that need to be added to the user story and we do it manually.

 

Ideally I want all this process automated to ensure nothing gets missed.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

thanks,

 

I've logged the request but in the meantime I have used the option of adding them to a sharepoint list, which is not ideal but works, just now need to get the hyperlink into the work item (i can add the link but does not show up as a hyperlink)

View solution in original post

33 REPLIES 33
v-litu-msft
Community Support
Community Support

Hi @mmorley,

 

It's unfortunate that there is no action that could add the file to a user story via Flow.

So your desire that makes it automatically couldn't satisfied. if you like this feature and want it could be added in Flow in the future, you could head to IDEA forum to submit your idea, collect votes to collect more support:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks,

 

I've logged the request but in the meantime I have used the option of adding them to a sharepoint list, which is not ideal but works, just now need to get the hyperlink into the work item (i can add the link but does not show up as a hyperlink)

Anonymous
Not applicable

I haven't figured it out yet, but I feel like the approach taken in solving the email attachment to Azure Devops issue a couple weeks ago has to be applicable.

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Adding-the-attachments-to-Azure-DevOps-wo...

Anonymous
Not applicable

Finally figured this out by adapting this recently solved approach from email attachments to Azure Devops. I'll readily admit I did a lot of copy pasting and a little bit from here and there, so there may be room for improvement in this process, as I don't consider myself a Power Automate expert by any means.

 

First get the submitted form and responses, then create a work item in Devops

Screen Shot 2020-09-22 at 3.22.15 PM.png

 Next parse the JSON response using this template

 

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "link": {
                "type": "string"
            },
            "id": {
                "type": "string"
            },
            "type": {},
            "size": {
                "type": "integer"
            },
            "referenceId": {
                "type": "string"
            },
            "driveId": {
                "type": "string"
            },
            "status": {
                "type": "integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}

 

 

Screen Shot 2020-09-22 at 3.24.56 PM.png

 

Screen Shot 2020-09-22 at 3.26.17 PM.png

removing the space from the filename and getting the ContentBytes of the attachment

 

replace(items('Apply_to_each')['name'],' ','-')

 

 

Screen Shot 2020-09-22 at 3.29.32 PM.png

Add the file to the ticket

 

binary(body('Get_file_content_using_path')['$content'])

 

Screen Shot 2020-09-22 at 3.32.18 PM.png

 Forms adds the submitters name to the end of the file URL, so I wanted to parse out the space in the filename

 

replace(outputs('Compose')['url'],'%20','-')

 

And here's the files uploaded from the Form

Screen Shot 2020-09-22 at 3.34.57 PM.png

Thanks for the above solution. I followed your steps @Anonymous and managed to upload the attachment to my Work Item. However, when I try to preview it (it is a jpeg) nothing comes up. When I try to download it and open it, I get a "it seems we do not support these types of files". Any ideas? I am not an expert but heavily experimenting with Power Automation! Thanks in advance!

And one more question please @Anonymous - on the 'Append to array variable' step, you use in "ContentBytes" the $Content from the SharePoint. I can only see "File Content" from my list in the Dynamic Content. Am I doing something wrong? Thanks!

Anonymous
Not applicable

jbwharris_0-1614351776626.png

@nvelissarisThis is what it's set for in my flow. I'm not sure if it changed or I changed it sometime in the interim(it's been a long time since I mucked with this). Hopefully that works for you.

Did you figure this out? I'm hitting the same issue with the file type. Tried a jpeg and xlsx. 

Thanks 

Hello @PoppyB 

I did a mix and match of the above and my flow looks like this...(the first two steps not showing here are: when a response is submitted and (2) Get response details from a Form

 

Screenshot 2021-07-05 094232.jpg

 Hope that helps

Lig
Regular Visitor

I feel like I'm so close to making this work, but I get "Unable to parse Base64 encoded bytes." from the last step.  

@Anonymous thanks for this idea, I am currently working on making work but I am not clear about this step. the one that gets the file content using path. How does this work if we are not using Sharepoint, the file actually comes from a MS Forms. Thanks

rglezmcr85_0-1632854965558.png

 

I ended up giving up on this and instead just linking to the file from the link tab instead of adding it as an attachment.  Not perfect, but better than  everything we'd had before.  Thanks for this help!

I'm no expert on this, but MS Forms puts files into Sharepoint whether you like it or not and you have to hunt down the location of them for that step.

As far as I am aware, Forms is using a folder to store all the items that are uploaded via it.

Thanks... and how do you extract the files form the folder in order to send them to Devops? Indeed Forms adds the files to OneDrive folder.

Its an oneDrive folder actually but I couldnt find the way to read the files and send them to DevOps

It really depends first of all where your configuration saves the file (OneDrive or SharePoint Folder)? If it is SharePoint then you get the file as you show on your screenshot. 

Then in my case, I needed to Append the file to an array

nvelissaris_0-1632920469478.png

Then you create a Send request as it has been described on this post, using POST. 

You then use Compose...

nvelissaris_1-1632920566682.png

And finally you Send another HTTP Request using PATCH now.

In the body, I used the following:

nvelissaris_2-1632920643368.png

Hope it helps 😏

Thanks @nvelissaris . Your input helped me to complement the original post and I am pretty close to make it work. Here is what I did, hopefully you can help me figuring out what am I doing wrong! 

 

High Level Flow

rglezmcr85_0-1632922388072.png

 

rglezmcr85_1-1632922419311.png

 

The HTTP Request

 

rglezmcr85_2-1632922497313.png

 

The binary content: "binary(body('Get_file_content')['$content'])"

 

rglezmcr85_3-1632922524103.png

and the Final HTTP

rglezmcr85_4-1632922561624.png

 

However I am getting the following error in the last HTTP Request:

 

Linking to a work item requires the full url
rglezmcr85_5-1632922646818.png

 

Check your Compose. Mine looks like

nvelissaris_0-1632925190892.png

And the POST Body/Binary like the below:

nvelissaris_1-1632925296887.png

Also, I used API Version 6.0 (not 5.0)

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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