LoginSignup
0
0

PowerAutomate: SharePoint 内で、ファイル・フォルダーで抽出する:{IsFolder} で抽出したい時用 by Filter Query

Posted at

背景

FilterQuery 備忘録シリーズ

{IsFolder} でフィルターしたいんだけど、出来ない!!って時の対処法

取得結果を見て、{IsFolder} でやっても出来ない

image.png

概要

FSObjType で指定してやれば OK

ファイル、もしくはフォルダーで絞る例
FSObjType eq 0 or FSObjType eq 1

0: File / 1: Foler で Filter する意図として使う。
通常であれば、or でこのように繋がず、and で他の条件と共に利用する

image.png

利用例

or で取得しているので、ファイル、フォルダー共に取得出来ている。
で、OrderBy で Files が先に並んでいる。

image.png

FSObjType の定義

FileSystemObjectType の Enum 定義は以下

image.png

あとがき

気力が持ったので書いた・・ :(

keyword

How to extract files/folders by the Filter Query. {IsFolder} does not work.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0