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 Apps / Creating a flow to mov...
Power Apps
Unanswered

Creating a flow to move data from Powerapps to Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to create a flow that will allow me to move data in a collection from my app to an excel spreadsheet. I have 18 different data points that I need to track. 

I was following the instructions from this post here. This says that I need to concatenate all the data from the collection into one string so that I can get it into flow, once it's into flow, then the flow will break it out into its separate components. I was going to do this by using this formula: 

Clear(SubmitData); ForAll(InpatientCharges,Collect(SubmitData, {PatientName:PT_NAME.Text, PatientDOB:PT_DOB,PatientStatus:PT_STATUS_COMBO_BOX,RenderingProvider:RENDERING_PROV,TubalConsent:TUBAL_CONSENT,Facility:FACILITY,Transport:TRANSPORT,DateOfService:DATE_OF_SERVICE,GestationalAge:GEST_AGE.Text,Gravida:GRAVIDA.Text,Para:PARA.Text,AdditionalDiagnosisNotes:ADD_NOTES.Text,ReferringPhysician:REF_PROV.Text,ReferringPhysicianPhoneNumber:REF_PROV_PHONE.Text,CPTCodeSelection:CPT,ProcedureSelection:PROCEDURE,UltrasoundSelection:US,OtherSelection:OTHER_CODES}));Output.Run(Concat(SubmitData,PatientName &"#" & PatientDOB & "#" & PatientStatus & "#" & RenderingProvider & "#" & TubalConsent & "#" & Facility & "#" & Transport & "#" & DateOfService & "#" & GestationalAge & "#" & Gravida & "#" & Para & "#" & AdditionalDiagnosisNotes & "#" & ReferringPhysician & "#" & ReferringPhysicianPhoneNumber & "#" & CPTCodeSelection & "#" & ProcedureSelection & "#" & UltrasoundSelection & "#" & OtherSelection:OTHER_CODES)))

However; when I tried to run the formula the following error appeared over the button: "Invalid argument type. Expecting one of the following: Text, Number, Boolean." I don't know what I'm doing wrong. Please help.

Categories:
I have the same question (0)
  • BitLord69 Profile Picture
    914 on at

    Hi,

     

    First of all, are you sure you want to use Excel as a DB? It's *very* slow and not much DB security.

     

    Secondly, why do you want to go through Flow? Instead, add the Excel connector and either use a Form (SubmitForm) or Patch to post your data to Excel. Here's a link with to the documentation: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-excel

     

    Good luck!

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah, we are certain that we want to go through powerapps. It has functionality that forms doesn't have, and we need. Secondly, I thought that working through the forms would work, but I have a lot of different tables for my data sources, and when I tried going through that way it didn't work. I got an error that said that the destination table wasn't editable. I tried to figure that one out, but I couldn't find anything about how to fix that. That left me with flow as the only option. 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard