Skip to main content

Notifications

Community site session details

Community site session details

Session Id : n1SU1NVQ2o//QndpJ1sNZd
Power Apps - Building Power Apps
Answered

Read from one excel file and write into another

Like (0) ShareShare
ReportReport
Posted on 16 Aug 2019 08:46:30 by

Dear all,

 

I am devloping an app that needs to deal with 2 files with different permissions in the same screen. I'll call the first file "User File" and the second "Admin file". The User will have read/write permissions for the User File, but only read permissions to the Admin File. The Admin will have read/write permissions for both.

 

Using Form1, the user will input some data into the app. This data will be written in the User File and a flow will be triggered to notify the Admin that new data is available.

 

Now it's when it gets tricky. The Admin will need to check this data in Form2. Form2 has the same fields as Form1 plus some more, and the fields that are common in both forms are already filled with the info input by the User. The info in those fields needs to be read from the User File. Then, the admin will complete the form with the rest of the info and submit Form 2. The data submitted in Form 2 should be written to the Admin File.

 

Therefore, I need a form that reads info from the User File, but then writes it into the Admin File, which I don't know how to do. Any ideas?

 

Thanks a lot

  • Verified answer
    Community Power Platform Member Profile Picture
    on 23 Aug 2019 at 09:38:24
    Re: Read from one excel file and write into another

    Hi Mona,

     

    Thanks for your tip (quoted here for ref)

    ---------------------------------------------------------------------------------------------

    This can be achieved using Patch function. The formula should be something like:

    Patch(Table2,Defaults(Table2),{TitleSmiley Very HappyataCardValue1.Text, ...})

    DataCardValue1 is the control name in Form2 with the data that you want to update to Title field of Table2. 

    ---------------------------------------------------------------------------------------------

     

    I managed to do it storing the contents of form1 as an Item when navigating to form2 and it seems to work, bit of a different approach with similar results.

     

    Thanks,
    carajillu_swri

  • v-monli-msft Profile Picture
    on 21 Aug 2019 at 09:42:27
    Re: Read from one excel file and write into another

    Hi @Anonymous ,

     

    This can be achieved using Patch function. The formula should be something like:

    Patch(Table2,Defaults(Table2),{Title:DataCardValue1.Text, ...})

    DataCardValue1 is the control name in Form2 with the data that you want to update to Title field of Table2. 

     

    Regards,

    Mona

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started
Loading complete