Hi @Anonymous
Yes it is. So what you can do is, you can initialise a variable of type array and use the expression :
split(triggerBody()?['{Path}'],'/')
This will split the folder path of the file and return an array. Run the flow like this by uploading a file to get the folder initially (you might want to create a new flow for testing this).
Now, you will have an array with folder names and you can see the index of the element that has the name of the desired folder. use that index and then in the original flow, have an initialise string variable action and then use this expression :
split(triggerBody()?['{Path}'],'/')[put the integer index value here]
In the last action where you create the file in the archive folder, provide the folder path until the /documents/xyz/archive/select the variable here.
This will move the file folder wise.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!