Studio
2024.10
偽
- 基本情報
- セットアップと構成
- オートメーション プロジェクト
- 依存関係
- ワークフローの種類
- ファイルの比較
- オートメーションのベスト プラクティス
- ソース管理との連携
- デバッグ
- 診断ツール
- ワークフロー アナライザー
- 変数
- 引数
- インポートされた名前空間
- コード化されたオートメーション
- はじめに
- Studio IDE
- 入力引数と出力引数を使用する
- ベスト プラクティス
- コード化されたオートメーションを使用する
- Invoking coded automations using libraries
- コード化されたオートメーションのサービス用のコネクションを作成する
- カスタム サービスを登録する
- Before および After コンテキスト
- コードを生成する
- 手動テスト用のテスト ケースからコード化されたテスト ケースを生成する
- トリガーベースの有人オートメーション
- レコーディング
- UI 要素
- 制御フロー
- セレクター
- オブジェクト リポジトリ
- データ スクレイピング
- 画像とテキストの自動化
- Citrix テクノロジの自動化
- RDP の自動化
- Salesforce の操作の自動化
- SAP のオートメーション
- VMware Horizon の自動化
- ログ
- ScreenScrapeJavaSupport ツール
- Webdriver プロトコル
- Test Suite - Studio
- 拡張機能
- トラブルシューティング
![](https://docs.uipath.com/_next/static/media/grid.05ebd128.png?w=3840&q=100)
Studio ガイド - プレビュー
Last updated 2024年6月10日
コード化されたオートメーションのサービス用のコネクションを作成する
This section helps you create connections needed to access APIs from services that use connections, such as GSuite.Activities and Excel.Activities within coded automations.
Start by creating a connection in Integration Service. The connections can be accessed within the same organization, and tenant of your coded automation project. Inside the coded automation, use the
connections
object to access the earlier created connections in Integration Service, and then access the corresponding APIs.
After you complete the automation and publish it to Orchestrator, you can override the original connection configurations set up in code, if needed.
Integration Service でコネクションを作成します。
- Go to Integration Service, and select the tenant that your Studio is connected to.
- [コネクション] に移動します。
- [コネクションを追加] を選択し、次のいずれかのアプリケーションのコネクションを作成します。
- Google ドライブ
- Gmail
- Google スプレッドシート
- Microsoft Office 365
- Open an existing coded automation from the same organization, and tenant where you initially created your connection.
Execute()
の本体内に「connections
」と入力し、Ctrl + Space
キーを押して利用可能なコネクションを表示します。以前にconnection
を作成したアプリケーションに応じて、以下のコネクションの種類から選択できます。GDrive
Gmail
GoogleSheets
Excel
OneDrive
O365Mail
- Further configure your connection by adding the Orchestrator folder name and the desired connection address, separated by underlines.
For example, a Gmail connection for the My Workspace folder in Orchestrator, and for the
john.doe@gmail.com
address would be written in code as:connections.Gmail.My_Workspace_john_doe_gmail_com
.推奨
We recommend you to create your connections in one step to avoid potential errors. We also recommend you to create a variable for the connection. This way, if changes occur in Integration Service, you'll avoid updating every instance of the connection throughout your automation. Use the following approach:Avoid creating your connections in two separate steps like:var myGmailConnection = connections.Gmail.My_Workspace_john_doe_gmail_com;
var myGmailConnection = connections.Gmail.My_Workspace_john_doe_gmail_com;var myGmailConnection = connections.Gmail; conn.My_Workspace_john_doe_gmail_com;
var myGmailConnection = connections.Gmail; conn.My_Workspace_john_doe_gmail_com; - Once you've established the
connection
, you can access the relevant APIs specific to a service through thatconnection
.For example, if you have set up a Gmail connection as follows:var myGmailConnection = connections.Gmail.My_Workspace_john_doe_gmail.com
, you can use the service's API usingmyGmailConnection
.
- プロジェクトを Orchestrator にパブリッシュします。
- Go to the Orchestrator feed where you've published the project.
- Go to the published process and select Edit.
- [プロセスの設定] で、エントリ ポイントとして、設定したコネクションが含まれるコード化されたオートメーションを選択します。
- In Package Requirements, find and select the corresponding connection type for your coded automation.
Be careful to select the connection type for your coded automation, as connections for XAML files within your project also appear in the list.
- Identify and select the account address you plan to associate with the connection when it runs.