I currently have a flow where I'm trying to do the following:
1. Get a list of files within a OneDrive folder
2. For each file:
a. Get the file contents
3. For each line, create a Dynamics 365 record.
I am able to do all of the above but struggle with point 2.a.
Here is a screenshot of my flow:
The "Get file content" block brings the file back as a string. Here is how this looks (sample data):
My question is, is there anyway to take the above output to an actual table so that columns and rows can be referenced?
I want to be able to create a Dynamics 365 record for each line and populate the record with the contents of the CSV's lines.
So it should go from
"Field A, Field B, Field C \n\r
Value 1, Value 2, Value 3 \n \r
Value 3, Value 4, Value 5"
Thanks in advance.
Do you want to get all file's content and the file1 content would be saved in the Field A in the first line of CSV table,
the file2 content would be saved in the Field B in the first line of CSV table,
the file3 content would be saved in the Field C in the first line of CSV table,
the file4 content would be saved in the Field A in the second line of CSV table,and so on?
If I understand you correctly,I afraid that there is no any way to achieve your needs in microsoft flow currently.
Thanks for your reply (and apologies for my late reply).
That's not quite what I'm trying to do but thanks for your reply anyway.
I actually managed to do this via an azure function.
This topic can now be closed.
Thank you again.
Just put your file into the action and you will be able to iterate through array of records with all the values.