Images and other media can be transformed on upload (attachment control) to JSON.
How can we attach a .xlsx file in the SP PowerApp List and convert the data to a usable format within a collection?
Please and thank you.
Hi,
did you find anything on this?
You can do this in Flow,
The procedure looks like this:
create a couple of variables and Get attachments from the row,
For each attachment, save to a separate document library (this is needed unfortunately)
Then grab the excel data as above (this action always returns in JSON)
Add Excel content to String (as JSON)
and close the apply to each
Clean up the tags to that it returns 1 table instead of many (this is the compose action
replace(replace(replace(replace(variables('Sites'), '][', ','), '{"value":', ''), '}]}', '}]'), '’', '')
Parse compose action back to Powerapps
The response action needs the schema for the excel data, this must be defined. If you run the flow against a sample you can generate the schema in Flow
You'll need to make sure that the excel files use tables and that the tables are the same. I have provided access to a template in the app (for the users) to aid with this restriction...
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
203 | |
45 | |
45 | |
45 | |
39 |
User | Count |
---|---|
279 | |
81 | |
79 | |
79 | |
69 |