通知を受け取る

UiPath StudioX

UiPath StudioX ガイド

共通シナリオ

共通シナリオについて

オートメーションをより短期間で設計できるようにするために、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 Outlook Account 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.

プロジェクトで共通シナリオを使用するには、次の手順を実行します。

  1. [デザイナー] パネルのシナリオを追加する場所で [アクティビティを追加] アイコン plus_iconplus_icon をクリックします。
    [アクティビティを追加] 検索バーが、関連性の高いアクティビティや共通シナリオが先頭に示されたリストとともに表示されます。
  2. 追加する共通シナリオをクリックします。
    シナリオ内のアクティビティが [デザイナー] パネルに追加されます。
  3. 必要に応じて、追加されたアクティビティを設定します。
561561

共通シナリオの説明

下の表に、StudioX で使用可能な共通シナリオと、必要になる可能性がある設定について示します。共通シナリオは、それらを追加先とすることのできるアクティビティに基づいて並べられています。

オートメーションの任意の場所

Common Scenario

What It Does

What You Need to Configure

Add date to folder file names

Prompts for the folder that contains the file names to update, adds a Write Cell activity that enters today's date in a cell in the Project Notebook, and a For Each File in Folder activity that iterates through the selected folder. Inside For Each File in Folder, another Write Cell activity copies the name of the current file in the iteration to the Project Notebook, and a Move File activity adds the current date to the name using a formula in the Project Notebook.

Delete folder and subfolders

Prompts for the folder to delete and adds a Delete Folder activity configured to delete even if the folder contains files or subfolders.

Excel ファイルを使用 (Use Excel File)

以下の共通シナリオは、[Excel ファイルを使用] アクティビティ内で追加される場合を除き、プロジェクト ノートブックとともに使用できます。

Common Scenario

What It Does

What You Need to Configure

Merge ranges

Adds an Append Range activity that copies all the values in a range and appends them to another range, and a Delete Rows activity that removes all duplicate rows from the destination after the data is appended.

  • In Append Range, select the source and destination ranges.
  • In Delete Rows, select the destination range.

Repeat actions for rows in Excel range

Adds an Excel For Each Row activity.

  • Select the range to use.
  • Add the activities to repeat inside Excel For Each Row.

アプリケーション/ブラウザーを使用 (Use Application/Browser)

Common Scenario

What It Does

What You Need to Configure

Fill form from Excel

Adds an Excel For Each Row activity that contains three Type Into activities configured to copy the data from the first, second, and third columns in the selected range, and pastes it into three indicated fields in the target application or web page. By default, the range A1:C3 from the Scratchpad sheet of the Project Notebook is used.

  • Make sure the range from the Scratchpad sheet of the Project Notebook contains the data to enter in the form (by default A1:C3). You can add another file in a parent Use Excel File activity and/or select another range for Excel For Each Row.
  • Indicate the target element for each Type Into activity.
  • Add or remove Type Into activities depending on the number of fields on the form.

Outlook アカウントを使用 (Use Outlook Account)

Common Scenario

What It Does

What You Need to Configure

Iterate through emails

Adds a For Each Email activity.

  • Select the Outlook folder or messages to use.
  • Add the activities to repeat inside For Each Email.

Send email

Adds a Send Outlook Email activity.

Configure the Send Outlook Email activity.

Download email attachments

Prompts for a folder where to save the attachments, adds a Save Email Attachments activity, then a For Each File in Folder containing a Write Line activity configured to display the file names in the Output panel.

Email folder backup

Prompts for a folder on the computer where to save emails, adds a For Each Email with a Save Outlook Email activity inside it.

Select the Outlook folder to back up from For Each Email. The Inbox is selected by default.

Create contacts details database

Adds a For Each Email activity configured to use the emails from the Inbox, Write Cell and Append Range activities inside For Each Email to copy the senders from each email to a new Contacts sheet in the Project Notebook, and a Delete Rows activity to remove duplicates.

Copy email details to Excel

Adds a series of Write Cell activities that add the email fields as column headers in a new sheet named Emails in the Project Notebook.
Then adds a For Each Email activity that contains a series of Write Cell activities that copy the fields of each email to the Scratchpad sheet, and an Append Range activity to copy all the fields to the Emails sheet.

In For Each Email, select the Outlook folder from which to get the emails. The Inbox is selected by default.

Email all files in a folder

Prompts for a folder to select and adds a Send Outlook Email activity configured to use the files in the selected folder as attachments. The current Outlook account is added by default to the To field.

Edit the default values added to the fields of the activity to customize the email, for example add one or more recipients, or edit the Subject and Body.

繰り返し (各メール) (For Each Email)

Common Scenario

What It Does

What You Need to Configure

Reply to email

Adds a Reply to Outlook Email activity to reply to the current mail in the iteration, a Mark Email as Read activity, and a Move Outlook Email activity to move the email to another Outlook folder.

  • In Reply to Outlook Email, edit the email body.
  • In Move Outlook Email, select a folder where to move the email.

Forward email

Adds a Forward Outlook Email activity to forward the current mail in the iteration, a Mark Email as Read activity, and a Move Outlook Email activity to move the email to another Outlook folder.

  • Configure the Forward Outlook Email activity.
  • In Move Outlook Email, select a folder where to move the email.

Move email

Adds a Move Outlook Email activity to move the current email in the iteration to another Outlook folder.

In Move Outlook Email, select a folder where to move the email.

Iterate through email attachments

Prompts for a folder where to save the attachments, adds a Save Email Attachments activity and a For Each File in Folder activity where to add activities to repeat for each attachment.

Add activities to repeat for each attachment inside For Each File in Folder.

繰り返し (フォルダー内の各ファイル)

Common Scenario

What It Does

What You Need to Configure

Try open file as Excel

Adds an If activity that checks if the current file in the iteration has the .xlsx extension. The Then branch contains a Use Excel File activity that adds the current file to the project if the condition is met.

Add date to file and move to subfolder

Adds a Create Folder activity that creates a subfolder named Processed in the current folder, a Write Cell activity to copy the name of the current file in the iteration to the Project Notebook, and a Move File activity that moves the current file to the subfolder and adds the current date to the name using a formula in the Project Notebook.

Group files by type

Adds a Write Cell activity to copy the name of the current file in the iteration to the Project Notebook, a Create Folder activity that creates a subfolder in the current folder named with the extension of the current file using a formula in the Project Notebook, and a Move File activity that moves the current file to the subfolder.

Group files by creation date

Adds a Write Cell activity to copy the creation date of the current file in the iteration to the Project Notebook, a Create Folder activity that creates a subfolder in the current folder named with the creation date of the current file using a formula in the Project Notebook, and a Move File activity that moves the current file to the subfolder.

2 年前に更新


共通シナリオ


改善の提案は、API リファレンスのページでは制限されています

改善を提案できるのは Markdown の本文コンテンツのみであり、API 仕様に行うことはできません。