Hi @Nicolas_P ,
You just want to get the name of the file's parent folder, right?
Add a Filter Array action before sending an email as below:
1. Set From field as below, the split will split the text based on specified delimiter character, and return an array.
split(triggerBody()?['{Path}'],'/')
2. Click Edit in Advanced Mode, input: @equals(empty(Item()),false) to filter out empty item in array.
3. in the email body, use last(body('Filter_array')) expression to get the file's parent folder name.


Sik