フローで繰り返し処理を行う場合、 [決定] 要素と数値型の変数を用いる方法と、[ループ]要素を用いる方法があります。
方法1: [決定] 要素と数値型の変数を用いる場合
決定要素と数値変数を用いることで、繰り返しを行う回数を指定することができます。
以下5回処理を繰り返す場合の方法について説明します。
ステップ1:ループの回数をカウントするための数値変数を作成します。
データ型: 数値
小数点の位置: 0
デフォルト値: 0
ステップ2: [決定] 要素でステップ1の数値変数の値が5未満の場合に分岐させるパスを作成します。
決定要素にて以下のように設定します。
変数: ステップ1で作成した数値変数
演算子: 未満
値: 5
ステップ3: ステップ2の左の分岐先に [割り当て] 要素を配置し、ステップ1の数値変数の値に加算します。
割り当て要素にて以下のように設定します。
変数: 1.で作成した数値変数
演算子: 追加
値: 1
ステップ4: ステップ3の要素を決定要素に接続します。
方法2: ループ要素を用いる場合
ループでは、コレクション変数のレコード分処理が繰り返されます。
例えば、以下例のように、割り当てにて3レコードを割り当てている場合、3回ループ処理が行われた後にフローが終了します。
ステップ1: ループする情報を格納する用のテキストコレクション変数を作成します。
データ型: テキスト
複数の値を許可 (コレクション): チェックを入れます
ステップ2: [ループ] 要素を配置し、[コレクション変数] としてステップ1のテキストコレクション変数を設定します。
→上記設定後、必要に応じてループ内に処理を配置してください。
003962435

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.