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 : auT/D9r7VavcZRwipSvtt7
Power Apps - Building Power Apps
Answered

Save collection as file

Like (0) ShareShare
ReportReport
Posted on 8 Aug 2018 09:54:08 by

Hi all,

 

Is it possible to save a collection as a file?

 

I've created a flow to save to sharepoint however in powerapps I am getting the error that the formula needs text rather than a table

image.png

 

 

 

I have the same question (0)
  • Mike8 Profile Picture
    1,328 on 08 Aug 2018 at 12:43:05
    Re: Save collection as file

    Hello Collen,

    Unfortunately flow can receive only strings from powerapps and not a table.
    You can concat the table in Powerapps in order to send it to Flow and use the split function in Flow in order to have it as a table.
    Check online and you can find examples.
    Also you can create a JSON string in powerapps using the concat function if you know how to do it.

  • Community Power Platform Member Profile Picture
    on 08 Aug 2018 at 13:34:01
    Re: Save collection as file

    Thanks Mike for the info! 

     

    I've been looking around and struggling to find examples of what you're talking about. Could you provide me with a link or so that demonstrate concatenating a table - then flow recreating it?

     

    Kind regards,

    Colleen

  • nickduxfield Profile Picture
    497 on 08 Aug 2018 at 23:12:48
    Re: Save collection as file

    @Anonymous,

    If your keen, you can patch to a list with columns that you can pass to flow.

    Flow can take action on an item added, and evaluate.

     

    Flow can use an ID and / or other columns to filter a table as in a SPList.

    You can then use the Get Items action / Select DataOperations / Generate HTML action in MSFlow to create a HTML table that can be placed in an email or possibly an attachment to an email. etc.

     

    Scenario:

    It might be good to do that in powerapps by connecting a flow to a button, but I needed to make a record anyway to carry the request / approval. Doing so allowed me to have 1 record, that

    1. represented a collection of items in a SPList.
    2. The record allowed me to Flow to look back on changes
    3. and or make updates autonomously.

    You may wish to take this approach nstead of placing a heavy workload on an OnSelect action.

  • Mike8 Profile Picture
    1,328 on 09 Aug 2018 at 07:20:44
    Re: Save collection as file

    Hello Colleen,

    You can use this as reference
    https://powerusers.microsoft.com/t5/Connecting-To-Data/Collection-from-PA-via-Flow-to-SP-list/td-p/94121

    If you have trouble implementing it, maybe I can help

  • v-xida-msft Profile Picture
    on 09 Aug 2018 at 09:08:10
    Re: Save collection as file

    Hi @Anonymous,

     

    Do you want to pass a collection from your app to your flow?

     

    Currently, a flow could only accept strings as input from PowerApps, if you want to pass a collection from an app to a flow, I afraid that there is no direct way to achieve your needs in PowerApps currently.

     

    As an alternative solution, I agree with @Mike8's thought almost. Please check and see if the following blog would help in your scenario:

    https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    on 09 Aug 2018 at 09:47:08
    Re: Save collection as file

    Thanks everyone - this is all really useful and will bear this in mind.

     

    I'm trying to do a work around at the moment using how powerapps automatically changes excel spreadsheets when connected, as what is happening there seems rather complex - however it's likely i'll need to turn back to this if my way fails so thanks 😄

  • Verified answer
    bbar0121 Profile Picture
    50 on 23 Jul 2019 at 15:53:43
    Re: Save collection as file

    As an alternative you could collect the data and display into an HTML table to either copy and paste the data into excel or email the html table. 

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard
Loading complete