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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft forms attach...
Power Automate
Unanswered

Microsoft forms attachment to slack channel

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I was wondering if any could help me build a power automate flow from Microsoft forms to a slack channel. I am having trouble with attachments. I am able to send the file as links to slack but it is only able to send one attachment per upload question. For example, if I have one upload question that has 5 attachments, the message will only sent one file and not five.

 

Anybody have a flow that can send multiple files in one upload question? I also have three different upload questions for different categories. It would be helpful if the solution would work for the other upload questions too. Thank you 

Categories:
I have the same question (0)
  • AshwinKalees Profile Picture
    34 on at

    @Justin20 Have you tried iterating the files using loop action and then post the files one by one?

  • Santhosh Balakrishnan Profile Picture
    169 on at

    Check the below steps and let me know if this works for you.

     

    1)Start by setting up a trigger for your Microsoft Form using "When a new response is submitted".

     

    2)Retrieve the details of the form response using the "Get response details" action. This action helps to retrieve the individual answers submitted by the respondent.

    @{triggerOutputs()?['body/resourceData/responseId']}

     

    3) Add action, "Initialize variable" and create variables with array type and store the upload type questions in the value.

     

    4) Then loop the questions to get a attachements and Include action, "Parse Json" to extract the link from Json 

    @{items('Apply_to_each_2')}

    @{outputs('Each_Question_Files')}

     

    You can use the below schema to parse json.

    {

        "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"

            ]

        }

    }

    6) As a final step, add "Post message" in slack. Use the expression,

    <@{items('Apply_to_each')['link']}|@{items('Apply_to_each')['name']}>

    to reference links and names in the Slack message. 

     sanbss_0-1708519108571.jpeg

     

     If this solution proves helpful and resolves your issue, kindly consider marking it as accepted. Doing so will aid others who encounter similar challenges in the future.


    Regards,
    Santhosh Balakrishnan
    Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
    Product Specialist - http://www.apps4.pro/

     

  • Justin20 Profile Picture
    8 on at

    Hi @sanbss,

    I have tried your method and it seems like I am having a error with the compose. Any advise? 


    Hi @AshwinKalees,

    Sorry, I am really a newbie at this. How do you iterate the files using loop action and then post files one by one?

    Screenshot 2024-02-22 at 9.47.49 AM.png
    Screenshot 2024-02-22 at 9.43.30 AM.png
  • AshwinKalees Profile Picture
    34 on at

    @Justin20 

     

    Can you check the below link to understand how to iterate the files uploaded in MS forms?

    https://www.youtube.com/watch?v=mYblnRqu6Z4

     

    And then inside the loop you can slack actions which you want to do..

  • Justin20 Profile Picture
    8 on at

    @AshwinKalees 

    Okay, I have done all the steps so far until slack actions. Unfortunately, slack actions doesn't have an attachment option. Any advise?

    Screenshot 2024-02-22 at 10.59.41 AM.png

  • Santhosh Balakrishnan Profile Picture
    169 on at

    Unfortunately Slack does not support adding attachments directly. Instead, you need to add it is hyperlinks in Message text. 

     

     

    If this solution proves helpful and resolves your issue, kindly consider marking it as accepted. Doing so will aid others who encounter similar challenges in the future.


    Regards,
    Santhosh Balakrishnan
    Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
    Product Specialist - http://www.apps4.pro/

     

     

  • AshwinKalees Profile Picture
    34 on at

    @Justin20 If you have API, you can use HTTP request to achieve this.

     

    Meantime is it ok for you to paste file as SharePoint link?

  • Justin20 Profile Picture
    8 on at

    Hi @AshwinKalees, it does comes out a SharePoint link but it only shows one link to a single file even though there were multiple files uploaded. 

    Hi @sanbss how do I do that? 

  • AshwinKalees Profile Picture
    34 on at

    @Justin20 If you have given a folder, it will have only one link which contains multiple files. 

     

    if you want to paste link for each file, then get the file content from SharePoint and iterate one by one, get the link and paste it in slack.

  • Justin20 Profile Picture
    8 on at

    Hi @AshwinKalees,

     

    I managed to get one link to be sent to slack but I don't know how to iterate one by one. I tried but it posted the same file three times. 
    Screenshot 2024-02-28 at 11.52.14 AM.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard