Use Microsoft Flow to retrieve the correct file name in OneDrive

0

Good morning everyone, I'm trying to use Flow to reorganize photos in my OneDrive personal account, I want to move them from a folder to another depending on its name, but I'm in trouble because:

  1. "List files in folder" returns only 20 items and it seems there is no way to change this limit

  2. looping each item that I retrieved with 1. I am unable to get the correct file name, the whole object has a structure like this:

    {
        "Id":"8696FD00835890F1!400241",
        "Name":"1CF8BAF6-3563-4C6F-A9A9-14D5DAA767D9.jpg",
        "NameNoExt":"1CF8BAF6-3563-4C6F-A9A9-14D5DAA767D9",
        "DisplayName":"1CF8BAF6-3563-4C6F-A9A9-14D5DAA767D9.jpg",
        "Path":"/Rullino%20di%20SkyDrive/1CF8BAF6-3563-4C6F-A9A9-14D5DAA767D9.jpg",
        "LastModified":"2016-08-13T17:18:16.73Z",
        "Size":348443,
        "MediaType":"image/jpeg",
        "IsFolder":false,
        "ETag":"\"aODY5NkZEMDA4MzU4OTBGMSE0MDAyNDEuMA\"",
        "FileLocator":"8696FD00835890F1!400241",
        "LastModifiedBy":"Roberto Albano"
    }
    

As you can see there is no one property of the real name (that is something like IMG_20190714_153838.jpg... even the display name returns the GUID instead of the name I see in OneDrive

Is there someone here that had similar experiences on this topic?

dancerjude

Posted 2019-08-23T10:27:38.860

Reputation: 1

No answers