cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sifu
Continued Contributor
Continued Contributor

import csv from Azure file storage to sharepoint list

hi,

i am not sure how to deal with this... i have a azure file storage system where csv files appear when process is done (user creation). Each file has one job in it, so for me each file is one item. Each file contains (at least now) two values (email and company).

 

Whats the best way to get them to the Sharepoint list?

 

so far i setup-ed a trigger on time (every x minute) and then get content, and with string expressions i cut the string from the file to desired columns... seems complicated but worked....uuuuuntil i tested  2 or more files. then what happend is that the email was taken correctly but company (2nd column) contained also all the strings from the other file(s).

1 ACCEPTED SOLUTION

Accepted Solutions
Sifu
Continued Contributor
Continued Contributor

i think i solved it 😄 the whole trick was that you can add path as a "display name" value

 

3.JPG

View solution in original post

3 REPLIES 3
v-alzhan-msft
Community Support
Community Support

Hi @Sifu ,

 

Could you please share a screenshot of the configuration of your flow?

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sifu
Continued Contributor
Continued Contributor

@v-alzhan-msft see below... I now suspect that the key will be to define one file to look on...after i copy the content from that one file, i shall delete it and let flow repeat the steps...(?) but how...

 

1.JPG2.JPG

username expression: 

substring(variables('newuser_string'),0,indexOf(variables('newuser_string'),','))
company name:
substring(variables('newuser_string'),add(indexOf(variables('newuser_string'),','),1),sub(length(variables('newuser_string')),add(indexOf(variables('newuser_string'),','),1)))

 

the csv file contains for example such data: username@domain.com,company name

Sifu
Continued Contributor
Continued Contributor

i think i solved it 😄 the whole trick was that you can add path as a "display name" value

 

3.JPG

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,199)