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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Parse/Read an excel fi...
Power Apps
Unanswered

Parse/Read an excel file & save contents to sharepoint list using power apps

(0) ShareShare
ReportReport
Posted on by 34

Hi,

 

I am very new to powerapps. Is it possible to read/parse an excel file and save its contents to a sharepoint list upon a button click using powerapps? Something like mass upload excel contents to a sharepoint list.

 

Is it possible to display/edit it's contents on a grid?

 

Regards,

_arc

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @_arc 
    The short answer is no: Power Apps cannot do this.  Instead you should look at Power Automate.  I suggest you post this question in their community at the link below.


    Link to Power Automate Community
    https://powerusers.microsoft.com/t5/Get-Help-with-Power-Automate/ct-p/FL_GeneralDiscussions


     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • _arc Profile Picture
    34 on at

    Okay thank you.

     

    In that case is it possible to create n blank rows in gallery.

    Eg: Say user has to insert 10 records (bulk create). Is it possible to create 10 blank rows edit them (user will paste data to be saved here) & save them to sharepoint list on a button click?

    Is there any other control available to achieve this? Kindly let me know

     

    Regards,
    _arc

  • Verified answer
    PPSA Profile Picture
    238 on at

    You can create blank rows for a gallery.

    I use this in multiple apps, usually to create a repeating table type effect.

    You need to used Clearcollect at first (I use this on a button that navigates me to the screen I want)
    This creates a collection for you where you can define the columns.

    PPSA_0-1597835446496.png

    In this example Date: "" Creates a column called Date which has a blank entry.

    The collection then looks like this

    PPSA_1-1597835538108.png

    Then on my next page I have a gallery with it's datasource as the collection you've created.

    PPSA_2-1597835589120.png

    Use whatever inputs you need to enter the data required.

    To save the data entered to the collection and create a new blank line I have the below code assigned to the OnSelect property of my save icon.

    Patch(
    colExpense,
    ThisItem,
    {
    ItemNumber: Value(itemnumber.Text),
    Date: Text(DatePicker1.SelectedDate,"[$-en-US]dd/mm/yyyy"),
    Description: Description.Text,
    InternalExternal:InternalExternal.SelectedText.Value,
    ExpenseType:ExpenseType.SelectedText.Value,
    NetAmount:NetAmount.Text,
    TotalAmount:Total.Text,
    VAT:VAT.Text,
    ExpenseNo:Last('Expenses Header').ID,
    appCurrentRow:false

    }
    );
    Collect(
    colExpense,
    {
    ItemNumber:Sum(CountRows(colExpense)+1),
    Date: "",
    Description: "",
    InternalExternal:"",
    ExpenseType:"",
    NetAmount:"",
    TotalAmount:"",
    VAT:"",
    ExpenseNo:Last('Expenses Header').ID,
    appCurrentRow:true
    }
    )

    This patches the current row's data to the blank line and creates a new blank line for you.

    You then use a ForAll statement to upload each line of your collection to your SP list - mine is assigned to the OnSuccess property of a form I use alongside this.

    ForAll(
    colExpense,
    If(
    !IsBlank(Description),
    Patch(
    ExpenseLine,
    Defaults(ExpenseLine),
    {
    Title: varUserName,
    Description: Description,
    'Internal/External': InternalExternal,
    Date: Date,
    ExpenseType: ExpenseType,
    Net: NetAmount,
    VAT: VAT,
    Total: TotalAmount,
    ExpenseNo:Last('Expenses Header').ID
    }
    )
    )
    )

    *The !IsBlank stops the empty line being uploaded to SP










  • mdevaney Profile Picture
    29,989 Moderator on at

    @_arc 
    The user will not be able to paste data into PowerApps from Excel row-by-row.  The most input PowerApps could take is field-by-field.

     

    Is it possible you could build a PowerApp to replace data-entry in the Excel spreadsheet?  That is the approach many app makers would take!

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • PPSA Profile Picture
    238 on at

    You could also just import directly from Excel to Sharepoint from within Excel, as long as the data is in a table.

    Once in SP it can be edited from within Powerapps

    Not sure if that is what you're aiming for?

  • mdevaney Profile Picture
    29,989 Moderator on at

    @PPSA 

    Yes, that's true GREAT IDEA.  @_arc could create a List in SharePoint where the 'quick edit' is used to COPY + PASTE from Excel!

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard