ADF Expressions

  • Return the last part of a path

    @last(split(variables('FolderPath'),'/'))

    Returns lastpart from /folder/path/followed/by/lastpart

  • Return a path except the last part

    @join(
      take(
        split(variables('FolderPath'),'/')
      , sub(length(split(variables('FolderPath'),'/')), 1)
      )
    , '/'
    )