cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carudev
Helper I
Helper I

Get CSV file and import to SharePoint list without third party connectors

Hello Guys!

 

I need to automatically get a CSV file that reaches me daily by email, and every time that email arrives I need to get the CSV and import to SharePoint List. And I need to do this without using any external connectors. HELP !!!

PS: Would I be able to get only a few columns from the CSV and not the whole one? Any ideas?
Thanks! 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks @Paulie78 for the mention

Hey @carudev 

You're prompted for a connection name and apikey initially as you need to create a connection to the Encodian connector 🙂 - this following short video explains all: https://support.encodian.com/hc/en-gb/articles/360012267353-Create-an-Encodian-Connector-in-Flow

You can obtain an apikey here: https://www.encodian.com/apikey

Once you have done this you'll have access to parse the CSV file which is fairly simple... there is a good guide here: https://blog.encodian.com/2020/01/parse-a-csv-file-and-add-content-to-a-sharepoint-list/

I've also just created the following video which should help 🙂

HTH

Jay

View solution in original post

9 REPLIES 9
Paulie78
Super User III
Super User III

I can give you a basic summary of the steps required, but there is quite a lot to do if you are new to PA:

 

  1. Use the "When an email arrives V3" action, modify the settings so that it only triggers if the email contains an attachment.
  2. Filter the attachment array so that only CSV files remain.
  3. Check that the filtered array is not empty (i.e. there were no CSV files).
  4. If it is populated, you now need to parse that CSV file.
    1. If you are new, you can use encodian to parse the CSV for you (or even if you are not new). @Jay-Encodian is really helpful.
    2. You can parse the CSV yourself in PA, but it is much more complex.
  5. When you have got your parsed CSV you can add the new items to a SharePoint list quite easily.

Most of the stuff above is a forum question in its own right, so I suggest you watch a some of the @JonL getting started videos on youTube and then just try and build the flow up. When you get stuck on a particular stage, people will help you out.

But it is perfectly possible, relatively difficult if you are new to the platform. But once you have done it, it will seem easy and you will be able to put together other flows with what you have learned. 

 

Omg, i'am like.. SUPER NEW in PA! ~freaking out~

I tried to use Parse CSV, but it asks me for a few different fields than what I saw in the examples. He asks me for:

Connection Name (?)
API key (?)

Do you know what those fields would be like?

 

carudev_0-1605142503844.png

 

Thanks @Paulie78 for the mention

Hey @carudev 

You're prompted for a connection name and apikey initially as you need to create a connection to the Encodian connector 🙂 - this following short video explains all: https://support.encodian.com/hc/en-gb/articles/360012267353-Create-an-Encodian-Connector-in-Flow

You can obtain an apikey here: https://www.encodian.com/apikey

Once you have done this you'll have access to parse the CSV file which is fairly simple... there is a good guide here: https://blog.encodian.com/2020/01/parse-a-csv-file-and-add-content-to-a-sharepoint-list/

I've also just created the following video which should help 🙂

HTH

Jay

View solution in original post

Paulie78
Super User III
Super User III

That is a really good video! Covers just about everything the original posted needs to know.

 

I prefer to filter the attachment array instead of using a condition like this:

FilterCSVFiles.PNG

But obviously both ways are equally valid

carudev
Helper I
Helper I

Thank you guys! 😄

That was really helpful @Paulie78  and @Jay-Encodian ! 🙂

With Encodian I was able to do this in the development and testing environment. BUT, now to put this flow in a real company environment, I would have to do it (Parse CSV) manually and without connectors. Do you know how this could be done?

 

Thanks!!!

Hi @carudev 

Check out this post: https://manueltgomes.com/microsoft/powerautomate/how-to-parse-csv-file/

We used to use similar approaches for our customers before we built the action... the reason we created the action is the manual approach is complex to implement, hard to update, hard to support and we uncovered lots of issues with data... think escape chars, speech marks, etc. which can be very very hard to manage manually.

I'd suggest the cost of your time and the support overhead wouldn't provide a cost effective solution 🙂

HTH

Jay

This solution worked perfectly for me however I received an error message due to the size of my csv content that I am attempting to pass to the SP List.  Below is the error message - is there an alternate solution that can handle more than 5000 rows since the Parse JSON auto converts to Apply to each?

 

Error Message:

"Unable to process template language expressions for action 'Apply_to_each' at line '1' and column '22263': 'The number of foreach items limit exceeded for action 'Apply_to_each': maximum '5000' and actual '27054'.'."

Hi, @campbelldw ! 😄

I believe that to deal with lists larger than 5,000 lines, it is necessary to purchase the premium license of Power Automate, as there is this limitation of 5,000 requests.

Here the microsoft checks that can help you::::

https://docs.microsoft.com/en-us/power-automate/limits-and-config

Paulie78
Super User III
Super User III

Hi @campbelldw  you could split the array into an array of arrays and keep the number below 5,000 always.

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

MSFTBizAppsLaunchEvent

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (30,020)