locked
V2 Dynamic file path RRS feed

  • Question

  • Hi,

    I have seen numerous threads and variations of what I am trying to achieve however I cant get it working.

    I need to read the folder from the previous hour achieving a path of

    'ping/yyyy/mm/dd/hh'

    'ping/2019/05/29/00'

    @concat('ping','/','formatDateTime(utcnow(),‘yyyy’)','/','formatDateTime(utcnow(),‘MM’)','/','formatDateTime(utcnow(), ‘dd’)','/','formatDateTime(adddays(utcnow(),-1),‘HH’)')

    Thanks in advance
    Wednesday, May 29, 2019 4:16 PM

Answers

  • You were very close .

    This should work for you . 

    @concat('ping/',formatDateTime(utcnow(),'yyyy'),'/',formatDateTime(utcnow(),'MM'),'/',formatDateTime(utcnow(),'dd'),'/',formatDateTime(addhours(utcnow(),-1),'hh')  )

    {

        "name": "Date",
        "value": "ping/2019/05/29/08"
    }

    Do let us know how this goes .

    { "name": "Date", "value": "ping/2019/05/29/08" }
    { "name": "Date", "value": "ping/2019/05/29/08" }


    Thanks Himanshu

    • Marked as answer by Rippll Thursday, May 30, 2019 8:32 AM
    • Unmarked as answer by Rippll Monday, June 3, 2019 12:21 PM
    • Marked as answer by Rippll Monday, June 10, 2019 2:56 PM
    Wednesday, May 29, 2019 9:14 PM