繰り返し(データテーブルの各行)について

こんばんわ。いつもお世話になっております。
素朴な疑問ですが、調べても分からなかったので、ご教示ください。
繰り返し(データテーブルの各行)の添付〇部を変数で使用したいと考えています。
デフォルトでは、CurrentRowで、すでに変数(というよりは行?)だと思うのですが、変数定義の欄には出てきていません。
この値を各行ごとに取得するには、改めて変数定義をし、代入を活用するほかない認識なのですが、正しいでしょうか。
当たり前のことかもしれず、恐れ入りますが、よろしくお願いいたします。

HI @norisan

Here, CurrentRow is not the variable. You can enter any value here

image

Regards
Gokul

@norisan
If you need to get the excel row values try with

Currentrow("Column name").Tostring

It will get the row value

Hi @norisan

Have you tried using current row inside the for each row in datatable?

Give a Datatable you need to loop into in the right side field and then try inside the for each row activity

And you should not create a seperate variable there

Regards
Sudharsan

Hello @norisan
CurrentRow is not a variable, It define the value to position within the scope of each, Beyond each row activity, we cannot use the value outside the for each. But can assign value with some other variable

@norisan

image
If you dont see the below prompt click on ctrl + space

Regards
Sudharsan

こんにちは

正しくはありません。既にいくつかのリプライでも回答がある通り、CurrentRow(“列名”) あるいはCurrentRow(“列名”).ToString() とすることでCurrentRowから直接当該行・指定列の情報を取得することができます。

このあたりは無償のe-LearningのUiPath Academy 開発初級コースでも出てきますので、一連の基礎を習得する必要があるのであれば受講いただくと良いかと思います。

皆さん、お忙しい中、ご回答ありがとうございました。
内容を理解しました。
ご提供できるデータテーブルは持ち合わせていないため、お見せすることが出来ず、申し訳ありません。
特徴を理解し、1つずつ進めていきたいと思います。
今後ともよろしくお願いします。

1 Like

Great @norisan

Kindly mark the correct post as solved, So that it will help for other too.

Regards
Gokul

Gokulさん
ありがとうございます。
皆さんの回答が確実に解決に結びついています。
1つずつsolutionボタンを押したのですが、1つしか反映されないようです。
勘違いしておりましたら、申し訳ありません。
ご指導に、感謝します。

For one topic we can able to give only one solution. so you can update only one solution. Which works for you @norisan

Happy automation

Gokulさん、ありがとうございます。
お互いに、happy automation.

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