- 基本情報
- チュートリアル
- オートメーション プロジェクト
- オートメーションの作成
- トラブルシューティング
StudioX user guide
The information on this page applies to projects with the Windows and Windows - Legacy compatibilities. For information specific to designing cross-platform projects, see Cross-platform Projects in the Studio guide.
アクティビティについて
アクティビティはオートメーション プロジェクトの基本的な構成ブロックであり、それぞれが、StudioX で自動化できる 1 つ以上の手動タスクを表しています。関連するアクティビティを相互接続したシーケンスが、1 つのオートメーション プロジェクトを形成します。繰り返しプロセスの自動化を検討する場合は、まずそのプロセスを個別の手動ステップに分解したうえで、それぞれのステップを自動化するアクティビティを StudioX で特定する必要があります。
例として、次のワークフローを自動化することを検討します。
- スプレッドシートを開きます。
- ビジネス アプリケーションを開きます。
- スプレッドシートのセルからデータをコピーします。
- コピーしたデータをビジネス アプリケーションのフィールドに貼り付けます。
- アプリケーションのボタンをクリックしてデータを送信します。
このプロセスを自動化するプロジェクトを StudioX で作成する場合は以下のアクティビティを使用します。
- [Excel ファイルを使用] で、使用するスプレッドシートを指定します。
- [アプリケーション/ブラウザーを使用] で、使用するアプリケーションを指定します。
- [文字を入力] で、ビジネス アプリケーションでデータのコピー先とするフィールドと、データのコピー元のセルを選択します。
- [クリック] で、ビジネス アプリケーションでデータ送信のためにクリックするボタンを指定します。
手動ステップと StudioX のアクティビティに、必ず 1 対 1 の対応関係が存在するわけではありません。この例でもわかるように、[文字を入力] アクティビティは、コピー対象とするテキストのコピー元とコピー先の両方を示すために使用しているので、2 つの手動ステップに対応しています。
アクティビティ パネル

The Activities panel shows available activities that can be added to the current project. In Windows and cross-platform projects, you can see both installed and installable activities, while in Windows - Legacy projects only installed activities are visible. Installed refers to activities packages that are already part of a project, while installable refers to packages that are available to install from the Official and Orchestrator Tenant feeds. To add an activity to your automation, double-click it or drag and drop it to the desired place in the Designer panel. Adding an installable activity installs its corresponding activities package in the project.
パネル内のアクティビティ上でホバーすると、そのアクティビティが属するパッケージとその説明が表示されます。アクティビティをお気に入りのリストに追加するには、そのアクティビティを右クリックして、[お気に入りに追加] を選択します。
アクティビティ パネルをカスタマイズする
Click the Group by button at the top of the panel to group available activities by the category they belong to or by the package they belong to. You can also clear the two options to see an ungrouped list of activities arranged alphabetically.
Click the Filter by
button to filter activities based on the options below.
Windows プロジェクトおよびクロスプラットフォーム プロジェクトの場合
- 利用可否でフィルター処理:
- インストール済み - プロジェクトにインストールされているパッケージに含まれるアクティビティを表示します (このフィルターは非アクティブ化できません)。
- Available - Show discovered activities that you can add to you project
- Windows - Show activities that are only available in Windows projects (this filter is only available in cross-platform projects)
- 種類でフィルター処理
- アクティビティ - アクティビティを表示します。
- トリガー - トリガーを表示します。
- Filter by category:
- Developer - Show activities designed for the Studio profile.
Windows - レガシ プロジェクトの場合
- 種類でフィルター処理
- アクティビティ - アクティビティを表示します。
- トリガー - トリガーを表示します。
- カテゴリ別にフィルター処理:
- Developer - Show activities designed for the Studio profile. These activities may not function as expected in the StudioX profile.
For example, if you are trying to view all Excel activities, you can select Group by Packages and deselect Group by Category.
コンテナー アクティビティ
「コンテナー」系のアクティビティは、それらのアクティビティ内に追加されたアクティビティを実行する場合の範囲または満たすべき条件を定義します。「コンテナー」系のアクティビティは、1 つまたは複数の子アクティビティを含む親アクティビティと言えます。「コンテナー」系のアクティビティの例として、以下のものがあります。
- Resource activities - Add an application resource to the automation and make that resource available to the activities added inside them.
- For Each activities - Define a collection of items and repeat the activities added inside them once for each of those items.
- Repeat number of times - Similar to a For Each, but it repeats the activities added inside it for a specified number of times.
- If, Switch, and Check App State - Evaluate a condition and determine the flow of the automation by executing specific activities added inside them based on the result of the evaluation.
- Wait for Download - Detects a file download initiated by the activities added inside it and makes the file available in the automation.
「リソース」系アクティビティ
アクティビティは、適用先のアプリケーションに基づいて、各カテゴリに分類されます。アプリケーションで実行するタスクを自動化するには、まず必要なアプリケーション リソースをオートメーションに追加する必要があります。以下のアクティビティによって、オートメーションにリソースを追加します。
- Use Excel File - Use a specified Excel file. The data in the Excel file is available to all the activities added inside this activity. When you configure child activities, you can select individual cells, ranges, or sheets in the file directly from StudioX.
- Use Desktop Outlook App, Use Outlook 365, and Use Gmail add a desktop Outlook, Outlook 365, and Gmail account to the automation. The emails in the account are available to all the activities added inside this activity. When you configure child activities, you can select individual folders, messages, or message fields directly from StudioX.
- Use Word File - Use a specified Word document. Add the activities to perform on the file inside this activity.
- Use Application/Browser - Use a specified desktop application or web browser page. Add the activities to perform in the application or web browser inside this activity.
- Use PowerPoint Presentation - Use a specified PowerPoint file. Add the activities to perform on the file inside this activity.
- Use OneDrive & SharePoint - Select an account to use for OneDrive and SharePoint automation. Add the related activities inside this activity.
自動化に必要なリソースはいくつでも追加できます。複数のアプリケーションを使用する複数のアクティビティについては、リソースを別のリソースの内部に追加します。以下に例を示します。
- Excel ファイルのデータと Outlook アカウントのメールの両方を使用するアクティビティを追加するには、[デスクトップ版 Outlook アプリを使用] アクティビティに [Excel ファイルを使用] アクティビティを追加し、[Excel ファイルを使用] 内に共通のアクティビティを追加します。
- Web ページと Word 文書の両方を使用するアクティビティを追加するには、[Word ファイルを使用] アクティビティに [アプリケーション/ブラウザーを使用] アクティビティを追加し、[アプリケーション/ブラウザーを使用] 内に共通のアクティビティを追加します。
オートメーションへのグローバル リソースの追加
「リソース」系のアクティビティを使用してリソースをオートメーションに追加すると、そのリソースを使用できるのはその「リソース」系アクティビティ内に追加したアクティビティのみとなります。プロジェクト内のすべてのアクティビティでリソースを使用できるよう、プロジェクトをリソースに接続することでリソースをグローバルに追加できます。グローバル リソースは [データ マネージャー] パネルで管理され、アクティビティとしてプロジェクトに追加されません。つまり、プロジェクトをリソースに接続することで、デザイナー パネルのスペースも節約できます。
For information on how to connect a project to an Excel workbook, see Connecting a Project to an Excel File.
項目を反復処理する
Iterating refers to repeating one or more activities in your automation project for each individual item in a collection of items. To iterate through items, add one of the available For Each activities in which you define the collection, and then add the activities to repeat inside the For Each. When you configure the activities to repeat, indicate that an activity should use data from each item in the iteration by selecting the current item option from the Plus
menu.
StudioX には、次の「繰り返し」系アクティビティが付属しています。
-
For Each Excel Row - Repeat one or more activities for each row in an Excel table, range, or sheet.
現在の項目を表すのは
CurrentRowです。アクティビティによっては、使用する列を現在の行から選択することも必要です。 -
For Each Excel Sheet - Repeat one or more activities for each sheet in an Excel file.
現在の項目を表すのは
CurrentSheetです。 -
For Each Email - Repeat one or more activities for each message in an Outlook folder, Gmail label, or in a selection of messages.
現在の項目を表すオプションは
CurrentMailです。また、アクティビティによっては、現在のメールから使用するフィールド ([件名]、[本文]、[本文 (HTML)]、[Bcc]、[Cc]、[送信先]、[送信元]、または [優先度]) を選択する必要があります。 -
For Each File in Folder - Repeat one or more activities for each file in a folder on your computer.
現在の項目を表すのは
CurrentFileです。使用するファイル プロパティとして、現在のファイルから [サイズ]、[名前]、[完全名 (フル パスを含む)]、[フォルダー]、[最終更新日]、[最終アクセス日]、[作成日]、[読み取り専用]、または [サイズ (KB)] を選択する必要もあります。 -
For Each Folder in Folder - Repeat one or more activities for each folder inside a specified folder on your computer.
現在の項目を表すオプションは
CurrentFolderです。一部のアクティビティでは、現在のフォルダーのどのプロパティ ([名前]、[フル パス]、[最終更新日]) を使用するのかを選択する必要もあります。
[繰り返し (コレクションの各要素)] 内に追加されたアクティビティを設定するときに識別しやすくするため、現在の項目のオプションの名前を、反復処理を実行している項目を表す名前に変更できます。
アクティビティで使用されるデータを構成する
Activities can receive data as input and, upon execution, they can generate output data. You configure the data for each activity using the Plus
menu available on the right side of data fields.
Depending on its purpose, an activity can have no data fields, one, or multiple data fields. The following information describes the options you can find in the Plus
menu. Because the menu displays options that are relevant in the context of each field, activity, and parent activity, only a subset of the options is available for each field.
入力フィールドのオプション
入力フィールドでは、以下のオプションを使用して、アクティビティが受け取るデータを定義します。
-
プロジェクトに追加されたリソースからのデータ
- Excel - Data from the Project Notebook or from an Excel file added to the automation. Select named cells, named ranges, tables, or sheets directly from the Plus
menu, or select Indicate in Excel to open the workbook in Excel and indicate in it. Selecting Custom Input lets you manually enter sheet names, table names, cell addresses, or range addresses. If the activity is inside an For Each Excel Row activity, you can select the current row in the iteration. - Outlook/Gmail/Outlook 365 - 親メールのリソース アクティビティに対して定義されたメール アカウントからのデータ。Outlook デスクトップ アプリで選択されたメッセージをプロジェクトの実行時に使用できます。アクティビティが [繰り返し (各メール)] アクティビティの内部にある場合は、反復処理中の現在のメールを使用できます。
- PowerPoint - 親の [PowerPoint プレゼンテーションを使用] アクティビティに対して定義された PowerPoint プレゼンテーションのデータ。スライド、プレースホルダー、スライド マスター、またはレイアウトを選択できます。
- ファイル - アクティビティが [繰り返し (フォルダー内の各ファイル)] アクティビティの内部にある場合、反復処理内の現在のファイルのプロパティを使用できます。
- Excel - Data from the Project Notebook or from an Excel file added to the automation. Select named cells, named ranges, tables, or sheets directly from the Plus
-
Text - Enter text using the built-in text builder. You can click Plus
inside the Text Builder to add Excel data, mail data, or values you saved for later use to the text. -
テキスト - 空の値 - このオプションを使用すると、後でテキストを追加したり更新したりする場合に空のテキストを値として設定できます。
-
数 - 数値または数式を入力します。数式でサポートしている演算子と記号は、
+(加算)、-(減算)、*(乗算)、/(除算)、^(べき乗。例: 2 の 3 乗の場合は 2^3)、( )(演算の順序を強制)です。You can click Plus
inside the Numeric Calculation window to add numeric values from the project. For example, select a cell in an Excel file, or a numeric value that you saved for later use. -
Condition Builder - Add conditional statements that are used to determine what activities to execute based on whether or not the conditions are met. For example, the If activity contains a condition field, and it executes a series of activities if the condition is met and, optionally, another set of activities if the condition is not met. You create a conditional statement by selecting two values and comparing them using one of the available operators: greater than, greater than or equal, less than, less than or equal, equal to, not equal to, is empty, is not empty, is true, is false, starts with, ends with, contains, is numeric, is not numeric. You can add multiple statements and select if all of the statements or any of the statements must be true for the condition to be met.
-
True / False - Adds a conditional statement. Select either
TrueorFalsefor fields that support conditional statements in activities such as the If activity. -
Use Variable - Use the output of another activity that you stored as a variable in the project for the current field. In certain cases, StudioX adapts the variable type so it matches the type the field requires. For example, you can use Text variables in fields that require a Number since the value is automatically converted from Text to Number. When a variable type is converted to another type, StudioX adds the new type at the end of the variable's name. In Windows and cross-platform projects, the variable selection window displays all the variables and arguments in the project, as well as properties specific to each data type. You can navigate to the desired property or use the search bar to find it. An icon next to each property indicates the type (for example, Tt for strings or 123 for numerical types). Variables that are automatically generated by StudioX for activity outputs are displayed under the activity where they were generated.

-
[日付/時刻を選択] - カレンダーの日付または時刻 (時、分) を選択します。このオプションは、日付と時間のフィールドで使用できます。
-
期間を選択 - 期間を選択します (時、分、秒)。このオプションは、期間のフィールドで使用できます。
-
Runtime options - Contains the Ask when run and Paste from clipboard options. Ask when run prompts for a value during project execution, This option is available for fields that accept text, numeric, date/time, or Boolean (True/False) values. Paste from clipboard uses an output value that you copied to the clipboard in another activity as input for the current field. This option is available for fields that accept text values or Excel ranges.
-
変数 - アプリ/Web 系のアクティビティのセレクターで使用するために作成された変数を選択します。
-
詳細エディターを開く - VB の式を入力します。
-
値をクリア - フィールドの現在の選択内容をクリアします。
出力フィールドのオプション
出力フィールドでは、アクティビティにより生成されるデータを使用して実行される処理を定義します。以下のオプションを使用できます。
- Excel - Save output to the Project Notebook or an Excel file defined for a parent Use Excel File activity. Select named cells, named ranges, tables, or sheets directly from the Plus
menu, or select Indicate in Excel to open the workbook in Excel and indicate in it. Selecting Custom Input lets you manually enter sheet names, table names, cell addresses, or range addresses. If the activity is inside an For Each Excel Row activity, you can select the current row in the iteration. - 変数を作成 - オートメーション内で後で使用できるように、出力を変数として保存します。プロジェクトでこの変数を参照するのに使用する名前を入力し、スコープを選択して、データ型を [テキスト]、[数値]、[True または False]、[小数点以下ありの数値]、[日付]、[期間] から選択します。作成した変数は、別のアクティビティで入力として選択できます。
- Runtime options - Contains the Copy to clipboard option, which saves the output to the clipboard. You can then paste the value in an input field in another activity. This option is available for fields that output text, Boolean values (True/False), numbers, or Excel ranges (for example, the Destination field in the Copy Range activity). Boolean and number values are converted to text when copied to the clipboard.
- Use Variable - Use the output of another activity that you stored as a variable in the project for the current field. In certain cases, StudioX adapts the variable type so it matches the type the field requires. For example, you can use Text variables in fields that require a Number since the value is automatically converted from Text to Number. When a variable type is converted to another type, StudioX adds the new type at the end of the variable's name. In Windows and cross-platform projects, the variable selection window displays all the variables and arguments in the project, as well as properties specific to each data type. You can navigate to the desired property or use the search bar to find it. An icon next to each property indicates the type (for example, Tt for strings or 123 for numerical types). Variables that are automatically generated by StudioX for activity outputs are displayed under the activity where they were generated.
- 変数の名前を変更 - 後で使用するために作成した変数の名前を変更します。
- 変数 - アプリ/Web 系のアクティビティのセレクターで使用するために作成された変数を選択します。
- 詳細エディターを開く - VB の式を入力します。
- 値をクリア - フィールドの現在の選択内容をクリアします。
アクティビティの出力を別のアクティビティの入力として使用する
アクティビティ間でデータの受け渡しができると非常に便利であり、特定のワークフローではこの操作が不可欠になる場合さえあります。StudioX では、あるアクティビティによって生成された出力を変数に保存しておき、そのプロジェクトで後から実行される別のアクティビティの入力として使用できます。
- To save data and use it in other activities, select the Create Variable option in the Plus
menu of a field that configures the output data of an activity, and enter a name for the variable (saved value). You will use this name later to identify and select the variable as input in another activity, so make sure to use a unique name that describes the variable.
注:特定のアクティビティでは、変数の名前とともにデータの型を選択する必要があります。[テキスト]、[数値]、[True または False]、[小数点以下ありの数値]、[日付]、[期間] からいずれかを選択します。保存する必要があるデータの型がリストに見つからない場合は、[詳細オプション] を選択します。
- To use the variable as input for another activity later in the project, select it from the Use Variable option in the Plus
menu of a field that configures the input data of an activity.
この機能が役立つさまざまなシナリオがあります。次に、いくつかの例を示します。
- [テキスト ファイルを読み込み] アクティビティでテキスト ファイルの内容を読み込んで出力し、それを [テキストを追加] アクティビティの入力として使用して Word ファイルにテキストを追加します。
- [ファイルの存在を確認] アクティビティで、ファイルが存在するかどうかをチェックし、出力される結果 (True または False) を [条件分岐 (if)] アクティビティの条件として使用して、ファイルが既に存在している場合に実行する特定のアクションを判断します。
プロパティ パネル

[プロパティ] パネルには状況に応じた内容が表示されます。選択したアクティビティの詳細なプロパティの表示と編集が可能です。複数のアクティビティを選択した場合、[プロパティ] パネルでは、これらのアクティビティに共通のプロパティのみを変更できます。
既定では、[プロパティ] パネルは非表示になっています。ほとんどの場合、アクティビティの設定はデザイナー パネル内に表示されるオプションで行えます。クロスプラットフォーム対応のプロジェクトでは、アクティビティのプロパティはすべてデザイナー パネル内のアクティビティ カードに表示されます。これは、Windows プロジェクト内の一部のアクティビティにも当てはまります。
変数を管理する
Variables are used to store data of different types and pass it between activities in a project. All variables used in your project can be found and managed in the Data Manager panel. To edit or rename a variable, open the Data Manager panel, right-click on a variable and select Edit Variable.
Read more about variables in the Managing Your Project Data page.
v2022.4 の StudioX から「保存された値」は「変数」に置き換えられました。基本的な機能は同じですが、変数を使用すると作成時にデータ型を設定できます。データ型は後で特定のアクティビティによって変更したり、ユーザーが手動で変更したりできます。なお、以前のバージョンの StudioX で作成したプロジェクトを v2022.4 の StudioX で開くと、「保存された値」のシステムが使用されます。
引数を管理する
Arguments are used to pass data between activities in a project and can be used to integrate an workflow with other products such as UiPath® Apps.
Once configured, you can use arguments in an activity similar to how you would use Variables (saved values). To edit or rename an argument, open the Data Manager panel, right click an argument and select Edit. Read more about arguments in the Managing Your Project Data page.
オートメーションを実行する
設計段階から、オートメーションを頻繁に実行することをお勧めします。プロジェクトが期待どおりに動作することを確認して、潜在的なエラーを早期に特定することができるためです。
オートメーションを実行するには、StudioX のリボンの [実行] をクリックするか、キーボードの F5 を押します。

プロジェクトの実行を停止するには、リボンの [停止] をクリックするか、キーボードの F5 を押します。プロジェクトの実行後、デザイナー パネルの上部に、実行が正常に完了したかどうかを知らせるメッセージが表示されます。
プロジェクトの一部だけを実行するには、任意のアクティビティを右クリックして、以下のオプションを選択します。
- このアクティビティまで実行 - プロジェクト内のこのアクティビティより前のアクティビティをすべて実行します。
- [このアクティビティから実行] - プロジェクト内のこのアクティビティ以降のアクティビティをすべて実行します。
ピクチャ イン ピクチャで実行する
プロジェクトの実行中にロボットの干渉を受けずにコンピューターを使用するには、オートメーションをピクチャ イン ピクチャ モードで実行します。このモードでは、プロジェクトが別ウィンドウで開かれた別のセッションで実行されるため、ユーザーがキーボード、マウス、画面を完全に制御できます。
ピクチャ イン ピクチャでオートメーションを実行するには、StudioX のリボンの [実行] の下にある矢印をクリックし、[PiP で実行] を選択します。または、F6 キーを押します。ロボットにより、プロジェクト内のアクティビティが新しいウィンドウで実行されます。
Microsoft Office のリソースを使用するオートメーションは、メイン セッションでそのリソースが既に開いている場合、ピクチャ イン ピクチャで正常に実行されません。ピクチャ イン ピクチャでオートメーションを実行する前に、オートメーションでアクセスされる PowerPoint、Excel、または Word のファイルをすべて閉じてください。
共通シナリオ
オートメーションをより短期間で設計できるようにするために、StudioX には共通シナリオが付属しています。これは、再利用可能なオートメーションの部品であり、あらゆるプロジェクトに追加できます。共通シナリオとは、タスクまたはタスクの一部を自動化するための、論理的な順序でグループ化された 1 つまたは複数のアクティビティのことです。
Common scenarios are context-sensitive, which means the available options depend on where exactly you are in your automation. For example, in a Use Desktop Outlook App activity, the available common scenarios are related to Outlook tasks, such as Download email attachments. For a list of available common scenarios, see Common Scenarios Descriptions.
プロジェクトで共通シナリオを使用するには、次の手順を実行します。
-
Click the Add activity
icon in the Designer panel where you want to add the scenario. The Add Activity search bar appears with a list of relevant activities and common scenarios at the top. -
Click the common scenario you want to add. The activities in the scenario are added to the Designer panel.
-
必要に応じて、追加されたアクティビティを設定します。

下の表に、StudioX で使用可能な共通シナリオと、必要になる可能性がある設定について示します。共通シナリオは、それらを追加先とすることのできるアクティビティに基づいて並べられています。
オートメーションの任意の場所
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| フォルダーのファイル名に日付を追加 | 更新するファイル名を含むフォルダーを確認するプロンプトを表示し、プロジェクト ノートブック内のセルに今日の日付を入力する [セルに書き込み] アクティビティと、選択されたフォルダー内で処理を繰り返し実行する [繰り返し (フォルダー内の各ファイル]) アクティビティを追加します。[繰り返し (フォルダー内の各ファイル)] では、内部で、もう 1 つの [セルに書き込み] アクティビティが繰り返し内の現在のファイルの名前をプロジェクト ノートブックにコピーし、[ファイルを移動] アクティビティがプロジェクト ノートブック内の式を使用して今日の日付をファイル名に追加します。 | |
| フォルダーとサブフォルダーを削除 | 削除するフォルダーを確認するプロンプトを表示して、[フォルダーを削除] アクティビティを追加します。このアクティビティは、たとえ指定されたフォルダーにファイルやサブフォルダーが含まれていても削除するように設定されています。 |
Excel ファイルを使用
以下の共通シナリオは、[Excel ファイルを使用] アクティビティ内で追加される場合を除き、プロジェクト ノートブックとともに使用できます。
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| 範囲を結合 | [範囲を追加] アクティビティ (ある範囲のすべての値をコピーして、それらを別の範囲に追加) と、[行を削除] アクティビティ (データの追加後に追加先から重複する行をすべて削除) を追加します。 |
|
| Excel 範囲内の行に対するアクションを繰り返す | [繰り返し (Excel の各行)] アクティビティを追加します。 |
|
| PowerPoint に Excel グラフを貼り付け Note: This scenario is available only when Use Excel File is placed inside an Use PowerPoint Presentation activity. | この共通シナリオは、Excel ファイルからグラフを選択してクリップボードにコピーする [グラフを取得] アクティビティと、保存した Excel グラフを PowerPoint プレゼンテーションに挿入する [スライドに項目を貼り付け] アクティビティを追加します。 |
|
PowerPoint プレゼンテーションを使用
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| PowerPoint に Excel グラフを貼り付け Note: For this scenario to work properly, place a Use Excel File activity inside the Use PowerPoint Presentation activity before adding the scenario. | この共通シナリオは、Excel ファイルからグラフを選択してクリップボードにコピーする [グラフを取得] アクティビティと、保存した Excel グラフを PowerPoint プレゼンテーションに挿入する [スライドに項目を貼り付け] アクティビティを追加します。 |
|
アプリケーション/ブラウザーを使用
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| Excel からフォームに入力 | 3 つの [文字を入力] アクティビティを含む [繰り返し (Excel の各行)] アクティビティを追加します。[文字を入力] アクティビティは、選択された範囲内の 1 列目、2 列目、3 列目のデータをコピーし、対象のアプリケーション内または Web ページ内の指定された 3 つのフィールドに貼り付けるように設定されています。既定では、プロジェクト ノートブックの Scratchpad シートの A1:C3 の範囲が使用されます。 |
|
デスクトップ版 Outlook アプリを使用
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| メールに対するアクションを繰り返す | [繰り返し (各メール)] アクティビティを追加します。 |
|
| メールを送信 | [メールを送信] アクティビティを追加します。 | [メールを送信] アクティビティを設定します。 |
| メールの添付ファイルをダウンロード | 添付ファイルを保存するフォルダーを確認するプロンプトを表示し、[メールの添付ファイルを保存] アクティビティを追加してから、[1 行を書き込み] アクティビティを含む [繰り返し (フォルダー内の各ファイル)] アクティビティを追加します。[1 行を書き込み] アクティビティは、[出力] パネルにファイル名を表示するように設定されています。 | |
| メール フォルダーのバックアップ | メールを保存するコンピューター上のフォルダーを確認するプロンプトを表示し、[メールを保存] アクティビティを含む [繰り返し (各メール)] アクティビティをその中に追加します。 | [繰り返し (各メール)] からバックアップするフォルダーを選択します。既定では [受信トレイ] が選択されています。 |
| 連絡先情報のデータベースを作成 | 受信トレイのメールを使用するように設定された [繰り返し (各メール)] アクティビティと、その内部の [セルに書き込み] アクティビティと [範囲を追加] アクティビティを追加して、各メールの送信者をプロジェクト ノートブックの新しい Contacts シートにコピーします。さらに、[行を削除] アクティビティを追加して、重複を削除します。 | |
| Excel にメールの詳細情報をコピー | プロジェクト ノートブックの Emails という名前が付けられた新規シートに、メールのフィールドを列見出しとして追加する一連の [セルに書き込み] アクティビティを追加します。 次に、各メールのフィールドを Scratchpad シートにコピーする一連の [セルに書き込み] アクティビティを含む [繰り返し (各メール)] アクティビティと、すべてのフィールドを Emails シートにコピーする [範囲を追加] アクティビティを追加します。 | [繰り返し (各メール)] でメールを取得するフォルダーを選択します。既定では [受信トレイ] が選択されています。 |
| フォルダー内のすべてのファイルをメール送信 | 選択するフォルダーを確認するプロンプトを表示し、選択されたフォルダー内のファイルを添付ファイルとして使用するように設定された [メールを送信] アクティビティを追加します。既定では、現在の Outlook アカウントが [宛先] フィールドに追加されます。 | アクティビティのフィールドに追加されている既定値を編集して、メールをカスタマイズします。例えば、1 人または複数の受信者を追加したり、件名や本文を編集したりします。 |
繰り返し (各メール)
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| メールに返信 | [メールに返信] アクティビティ (繰り返し内の現在のメールに返信)、[メールを既読/未読にする] アクティビティ、[メールを移動] アクティビティ (メールを別のフォルダーに移動) を追加します。 |
|
| メールを転送 | [メールを転送] アクティビティ (繰り返し内の現在のメールを転送)、[メールを既読/未読にする] アクティビティ、[メールを移動] アクティビティ (メールを別のフォルダーに移動) を追加します。 |
|
| メールを移動 | 繰り返し内の現在のメールを別のフォルダーに移動する [メールを移動] アクティビティを追加します。 | [メールを移動] でメールの移動先フォルダーを選択します。 |
| メールの添付ファイルを保存して処理 | 添付ファイルを保存するフォルダーを確認するプロンプトを表示し、[メールの添付ファイルを保存] アクティビティと、各添付ファイルに対して繰り返すアクティビティを追加する [繰り返し (フォルダー内の各ファイル)] アクティビティを追加します。 | [繰り返し (フォルダー内の各ファイル)] 内に各添付ファイルに対して繰り返すアクティビティを追加します。 |
繰り返し (フォルダー内の各ファイル)
| 共通シナリオ | 機能 | 必要な設定 |
|---|---|---|
| ファイルを Excel で開く | 繰り返し内の現在のファイルの拡張子が .xlsx であるかどうかを確認する [条件分岐 (if)] アクティビティを追加します。Then 分岐には、条件が満たされたときにプロジェクトに現在のファイルを追加する [Excel ファイルを使用] アクティビティが含まれます。 | |
| ファイル名に日付を追加しサブフォルダーに移動 | [フォルダーを作成] アクティビティ (現在のフォルダーに Processed という名前のサブフォルダーを作成)、[セルに書き込み] アクティビティ (繰り返し内の現在のファイルの名前をプロジェクト ノートブックにコピー)、[ファイルを移動] アクティビティ (現在のファイルをサブフォルダーに移動し、プロジェクト ノートブックの式を使用して今日の日付をファイル名に追加) を追加します。 | |
| 種類ごとにファイルをグループ化 | [セルに書き込み] アクティビティ (繰り返し内の現在のファイルの名前をプロジェクト ノートブックにコピー) と [フォルダーを作成] アクティビティ (現在のフォルダー内に、プロジェクト ノートブックの式を使用して、現在のファイルの拡張子付きの名前でサブフォルダーを作成)、[ファイルを移動] アクティビティ (現在のファイルをサブフォルダーに移動) を追加します。 | |
| サイズごとにファイルをグループ化 | Adds an If activity that checks if the current file in the iteration is smaller than 100KB. The Then branch contains a Create Folder activity that creates a new folder with the title set to 100 K and a Move File activity that moves the current file in the iteration to the newly created folder. The Else branch contains an If activity that checks if the current file is smaller than 1000KB. Both the Then and Else branches contain a Create Folder and Move File activity. | |
| 作成日ごとにファイルをグループ化 | [セルに書き込み] アクティビティ (繰り返し内の現在のファイルの作成日をプロジェクト ノートブックにコピー)、[フォルダーを作成] アクティビティ (現在のフォルダー内に、プロジェクト ノートブックの式を使用して、現在のファイルの作成日でサブフォルダーを作成)、[ファイルを移動] アクティビティ (現在のファイルをサブフォルダーに移動) を追加します。 | |
| Excel にファイルの情報をコピー | 反復処理内の現在のファイルの名前、フル パス、サイズ、作成日を Scratchpad シートにコピーする一連の [セルに書き込み] アクティビティと、すべてのフィールドを Files シートにコピーする [範囲を追加] アクティビティを追加します。 |
ヒントと裏技
全般
-
オートメーションに追加した Excel、Word、PowerPoint の各ファイルを [データ マネージャー] パネルから直接開くことができます。Excel または Word のリソースを右クリックし、[開く] を選択します。[ファイルの場所を開く] を選択して、ファイルを含むフォルダーを開くこともできます。

-
If you're not sure which activity can help you automate a specific action, search through activities using either the search bar at the top of the Activities panel, or the one displayed at the top of the screen after you click Add activity
in the Designer panel. Searching returns results from activity names as well as descriptions, so it can be a good way to find activities you may not have discovered yet.
-
プロジェクトに追加したアクティビティに支援が必要な場合は、そのアクティビティを右クリックして [ヘルプ] を選択するか、アクティビティを選択してからキーボードの F1 キーを押して、設定方法に関する情報が記載されたドキュメント ページを開きます。
-
If you want to save a few clicks when designing your automations, you can double-click most activity fields to open the option in the Plus
menu most commonly used to configure that field. For example, double-clicking a field that accepts text input opens the Text Builder, doing the same for the Condition field in the If activity opens the Condition Builder. -
When you select Text from the Plus
menu to add text to an activity field, you can compose text that combines multiple types of data using the Text Builder. In addition to typing text, you can select other types of data from the Plus
menu in the upper-right corner the Text Builder. For example, you can add the contents of a cell in an Excel file, a field in an Outlook email, or one of the properties of a file on your computer that you saved for later in a previous activity.
UI Automation
-
When configuring a Use Application/Browser activity to add a desktop application to the automation, if you want the automation to open a specific file, indicate the application, and then add the path to the file in the Application arguments field. For example, if you indicated Acrobat Reader as the application to automate and you want to work with the file form_template.pdf located in the
C:\Workfolder, enterC:\Work\form_template.pdfin the Application arguments field to open the file in Acrobat when the automation is executed.
-
When indicating target elements of App/Web activities in web browsers, always add at least one anchor to make sure the element is correctly identified by the Robot. For more information about targets and anchors, see UI Automation.
-
Web ブラウザーで実行するタスクを自動化するように [アプリケーション/ブラウザーを使用] アクティビティを設定するときは、Web ブラウザーを指定する前に、オートメーションで最初のアクションを実行する Web ページに移動します。この操作を実行すると、[ブラウザーの URL] フィールドにページの URL が自動的に追加されるため、手動で URL を入力する必要がありません。
-
If you don't want to add too many Type Into activities to fill out a form with many fields, you can simplify your workflow by configuring one Type Into activity to enter text in multiple fields. After indicating the first field on the form and selecting the text to type into it, you can open the Text Builder of the Type this field, add the
tabspecial key from the Plus
menu inside the Text Builder, and then select the text for the following field. For example, provided that the tabkey moves the cursor to the next field in the target application, configuring the Type this field like in the following image copies the text from three different cells and pastes it in three different fields.
-
2 つの連続する「アプリ/Web」系のアクティビティのタイミングが適切でない (最初のアクティビティによるアクションの実行に長い時間がかかり、そのアクションが完了する前に 2 番目のアクティビティが開始されるなど) 場合は、アクティビティの [プロパティ] パネルから [実行前の待機時間] または [実行後の待機時間] のプロパティを設定して、最初のアクティビティが完了した後に 2 番目のアクティビティが開始するようにします。この 2 つのプロパティでアクティビティの実行前または実行後の待機時間を追加することで、アクティビティの間隔を必要に応じて増やすことができます。
-
When the actions you want to perform in a desktop application or web browser depend on the state of the application, use a Check App State activity to determine which actions to perform based on the state. This activity verifies whether an element appears in or disappears from the user interface of the target application and enables you to add different activities to execute when the element is found and/or when it is not found. For example, you can check if you are already logged in to a web application by verifying if the Log in button is present, and only perform the actions required to log in when the button is found.
Excel
- The Excel files you add to automations are not always available at design time (for example, a file can be created by or downloaded during the automation). In this scenario, you can still take advantage of StudioX's deep integration with Excel to configure the activities that use the file by defining another file with the same format (same sheets, columns, tables, etc.) as a template file. Once defined, you can indicate data in Excel or select data from the template file directly from the Plus
menu. For example, if you want to create an automation with a report you'll receive monthly, use an existing report with the same format as the template. To define a template, add the Use Excel File Excel File activity, enter the path to the file to automate, then select the Template file option and indicate the file to use. - When you want to work with a .xls (Excel 97-2003) workbook, the data in the file cannot be accessed directly from the Plus
menu. In this case, you can configure activities that use the file with the Indicate in Excel or Custom input options in the Plus
menu. Alternatively, to be able to select data directly from the menu, create a .xlsx copy and add it as a template file. - When you filter rows in a large sheet and iterate through them using an Excel For Each Row activity, instead of iterating through the original sheet after applying the filter, use a Copy Range activity to copy the filtered rows to a different sheet, and then iterate through the filtered range in the new sheet. This will result in better performance when the project is executed.
デスクトップ版 Outlook アプリ
-
You can add bodies formatted as HTML for emails sent using mail activities from the desktop Outlook app by selecting the Use Word Document option for the Body field. This enables you to select a Word document containing formatted text, images, or tables as the body of emails sent with the Send Email , Reply to Email, and Forward Email activities.

プロジェクトを実行する
-
プロジェクトの実行中にロボットの干渉を受けずにコンピューターを使用するには、オートメーションをピクチャ イン ピクチャ モードで実行します。この機能では、プロジェクトを別ウィンドウで開かれた別のセッションで実行できるため、キーボード、マウス、画面を完全に制御できます。ピクチャ イン ピクチャでオートメーションを実行するには、StudioX のリボンの [実行] の下にある矢印をクリックし、[PiP で実行] を選択します。

-
エラー メッセージを読むことなく、プロジェクトの実行時に発生したエラーを閉じた場合は、[出力] パネルでエラー メッセージを確認できます。[出力] パネルにアクセスするには、StudioX ウィンドウの左下隅にある [出力] をクリックします。

-
同じアプリケーションの複数のインスタンスが開くのを避けるために、オートメーションを実行する前に、オートメーションに使用されるアプリケーションとファイルをすべて閉じます。
- アクティビティについて
- アクティビティ パネル
- コンテナー アクティビティ
- 「リソース」系アクティビティ
- 項目を反復処理する
- アクティビティで使用されるデータを構成する
- 入力フィールドのオプション
- 出力フィールドのオプション
- アクティビティの出力を別のアクティビティの入力として使用する
- プロパティ パネル
- 変数を管理する
- 引数を管理する
- オートメーションを実行する
- ピクチャ イン ピクチャで実行する
- 共通シナリオ
- オートメーションの任意の場所
- Excel ファイルを使用
- PowerPoint プレゼンテーションを使用
- アプリケーション/ブラウザーを使用
- デスクトップ版 Outlook アプリを使用
- 繰り返し (各メール)
- 繰り返し (フォルダー内の各ファイル)
- ヒントと裏技
- 全般
- UI Automation
- Excel
- デスクトップ版 Outlook アプリ
- プロジェクトを実行する