I provide entire logic app for your reference, most of actions are same as yours:
1. The overview of the logic app
2. The first three actions
3. Fourth and fifth action
4. Details of "For each" loop
The expression in "Set variable" is int(substring(items('For_each')?['Name'], 0, 8))
and the expression in "Set variable 3" is replace(items('For_each')?['Name'], '/', '')
5. The last two actions
The last expression in "Get blob content" action is body('List_blobs_2')?['value'][0]?['Name']
====================================Update=================================
1. Delete the last action "Get blob content" of your logic app.
2. Then we start after the action "List blobs 2". Add two "Initialize variable".
3. Add another "For each" loop. Please note: choose value
from "List blobs 2" into "For each 2" but not choose value
from "List blobs" into "For each 2".
4. The details in the "For each 2" loop.
The expressions of both fx ticks(...)
are ticks(items('For_each_2')?['LastModified'])
And in "Set variable 5", also choose the Name
from "List blobs 2" but not from "List blobs".
5. Then add "Get blob content" action like below screenshot.
6. By the way: Please do this setting for all of the "For each" loop action in your logic app before you run the logic app. Otherwise, the result may be incorrect.
Click ...
button of the "For each" action and click "Settings", enable Concurrency Control
and set Degree of Parallelism
as 1
.
mycontainer/invoice/20200101/invoice1.csv
,mycontainer/invoice/20200201/invoice2.csv
? Or there are multiple files in each folder, likemycontainer/invoice/20200101/invoice1.csv
,mycontainer/invoice/20200101/invoice2.csv
,mycontainer/invoice/20200101/invoice3.csv
? – Hury Shen20200101
or20200101-20200131
– Hury Shen