GSuiteプリケーションスコープでの「ファイルやフォルダーを探す」アクティビティの使い方

GSuiteプリケーションスコープ内で「ファイルやフォルダーを探す」アクティビティの使い方を教えていただきたいです。
このアクティビティを使用して、スプレッドシートIDなどを取得したいです。

以下のように入力していますが、エラーになります。正しい記述方法を教えていただきたいです。
“mimeType != ‘application/vnd.google-apps.folder’ and name = ‘ファイル名’ and ‘フォルダID’ in parents”

ちなみに、ファイル名の部分は、拡張子は不要でしょうか?Config.gsheetの場合、Configだけでよいでしょうか?

また、フォルダIDの部分は、添付画像の赤字で囲んだ部分でよろしいでしょうか。

HI @FSP

Welcome to community!

Dont use mimetype in Find files and folder use condition like in this tutorial

Instead get all the ids and then get only files list by the expression

FindFilesVariable.AsEnumerable().Where(Function(s) Not s.MimeType.Contains(“application/vnd.google-apps.folder”)).Select(Function(a) a.Name)

Regards
Sudharsan

1 Like

ありがとうございます。
MIMEタイプ使わずに、以下でできました、
“name = ‘ファイル名(拡張子なし)’ and ‘フォルダID’ in parents”

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.