Hello,
I'm trying to build a flow that checks if a folder in a SP library is empty and if yes, update an element in a list with a blank value.
I found some threads here that did it with the list folder action and a length function in a condition. Somehow for me it already fails at the list folder action. I always get an error saying "the response is not in a JSON format. The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." But I can confirm that the folder does exist, so I'm confused. I'll share my flow below:
Some additional info:
The flow is triggered in a PowerApp and the folder name is also handed over through the app (that's "InstructionID"). That works correctly, as I can see in the action input. But still it says that the folder cannot be found. Is it because it is empty? Or is there another mistake?
And would the steps to check if it's empty and update the list element to blank value work like this? The expression I use is the following:
#in the condition
length(outputs('Ordner_auflisten')?['body'])
# for updating the list element:
null()
Edit: the length and null expressions are working. So the only question remaining is the one with the folder name