How To Use For Each Loops in UiPath (Full Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มิ.ย. 2024
  • This full video tutorial shows how to use For Each Loops in UiPath. The guide covers Each Excel Row, For Each Row in Data Table, For Each, While and nested For Each Loops. We build the For Each examples in UiPath Studio, and I explain everything.
    📂 Download the Course Materials: andersjensen.org/for-each-loo...
    VIDEOS FOR YOU:
    🔹 My RPA Developer Salary: • My RPA Developer Salar...
    🔹 Specialize in THIS and get an RPA Job: • Specialize in THIS and...
    👨‍👩‍👧‍👦 Discord: / discord
    - Join my network with +1500 RPA Developers, where we solve RPA problems, network, and help each other upgrade our careers. It's free!
    FOLLOW ME:
    💼 LinkedIn: / andersjensenorg
    📸 Instagram: / andersjensenorg
    👨 Facebook: / andersjensenorg
    🐦 Twitter: / andersjensenorg
    💌 Email Newsletter: andersjensen.org/email-newsle...
    MY GEAR (Amazon affiliate):
    🖥️ My monitor
    Samsung 49-inch CRG9 Curved Monitor = geni.us/MDpejc
    - If you are buying this, I can recommend the Mi Monitor Light Bar = geni.us/3Wwad
    💡 Lights
    IVISII 19 inch Ring Light and Stand = geni.us/fVCH3IC
    Godox TL60 RGB Tube Light = geni.us/u0hxf
    ⌨️ Keyboard
    Logitech Backlit Keyboard = geni.us/aT0ltB
    📹 Camera
    Sony FDRAX53-B = geni.us/gnAE
    Lenovo 500 Full HD Webcam = geni.us/cZS4
    🎤 Microphone
    Rode Wireless GO II = geni.us/iqy0g6H
    Blue Yeti = geni.us/dDBjCB
    0:00 Intro
    We are creating all the For Each loops of UiPath in this video tutorial. Remember to open up UiPath Studio and build with me - you'll learn much faster.
    0:35 For Each Excel Row
    We use the native Excel activities in UiPath to work with Microsoft Excel. In the first example, we want to iterate through each row in an Excel sheet, make an If condition, and update an Excel column. Use the Excel Process Scope and a Use Excel File to define the Excel scope and choose the .xlsx file. Then, in the For Each Excel Row, we automatically select our sheet name (or range). To convert the Excel value to an integer and use it in the If condition, we convert the Excel object to a string and an integer. Finally, use the Write Cell to write the value in the Excel cells.
    9:48 For Each Row In Data Table
    To iterate through Data Rows in a Data Table, we use the For Each Row In Data Table activity. First, read your Excel sheet into a Data Table with a Read Range. Then, again use an If activity to ask a question in the condition and use the answer to update the Data Table values. Finally, to edit a Data Table cell, we use an Assign with a simple expression.
    20:23 For Each Loop
    We use a For Each to iterate through collections like Arrays, Dictionaries, Lists, IEnumerables, etc. Remember to change the TypeArgument in Properties. We use the For Each on an Array, but the intuition is the same.
    27:30 While (vs. For Each) Loop
    The While loop is often confused with the For Each loop. Both are used to traverse through a collection, but the For Each stops when each item is processed, whereas the While continues until the condition is met.
    31:58 Nested For Each Loop
    We use a nested For Each loop to compare two Excel sheets (Data Tables). To stop a For Each loop, we use a Break activity.
    #uipath #rpa #automation
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 39

  • @andersjensenorg
    @andersjensenorg  2 ปีที่แล้ว +5

    I got no secrets. Here is my video about my RPA Developer Salary: th-cam.com/video/KDaTZDo8LVM/w-d-xo.html 💰🙂

  • @maiconcosta9408
    @maiconcosta9408 ปีที่แล้ว +1

    Anders first of all I'd like to say tk you for all videos you do, besides you explain everything in a easy way to understand.
    It is helping me a lot. Greetings from Brazil.

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Thanks a lot, Maicon Costa 🤗 Your feedback helps me immensely. Kind regards, Anders

  • @anatolek7
    @anatolek7 2 ปีที่แล้ว +1

    Great video! Thank you for making it! It has helped me understand how the different "For Each" can be used.

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Thanks a lot, Tony - I'm glad you could use it 🙂🙌 Kind regards, Anders

  • @oscarhearnden4799
    @oscarhearnden4799 2 ปีที่แล้ว +2

    Andres, Big thankyou from me! Your materials have helped me learn the fundamentals of this platform and has been a big help with my job. Cheers!

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      You're very welcome, Oscar. Thanks a lot for letting me know, highly appreciated 🙂💪

  • @gibsonl2996
    @gibsonl2996 2 ปีที่แล้ว +1

    This is exactly the type of tutorial I was looking for.

  • @oskip91
    @oskip91 2 ปีที่แล้ว +1

    Great job! Your materials are very helpful. Thanks for next great tutorial ;) I'm new in RPA so I watch every one of your video and I try learn as much as I can. Maybe someday I can find job for Junior's RPA devs :) THX for your job :)

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว +1

      Hey Oskip, Thanks a ton - and plese let me/us know about your learning journey 🙂 The great part about UiPath is that you can teach yourself everything back home. Kind regards, Anders

  • @MrSirRise
    @MrSirRise ปีที่แล้ว +1

    Tks for this Post!

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      You're very welcome, Nuno Dias - your support helps me a lot 😍

  • @gocrow23
    @gocrow23 2 ปีที่แล้ว +1

    Thanks for the post Anders ! May I suggest to showcase the creation and use of CI/CD pipeline and its deployment that would help people who are migrating to new technology or starting as newbie !

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว +1

      Thanks a ton! Have you seen this: th-cam.com/video/ZCABZgBmjtM/w-d-xo.html (Git) and this th-cam.com/video/TTIzV9-FSMM/w-d-xo.html (Object Repository). And yes I will try my best to cover your topics in the future. Kind regards, Anders

  • @kaushikbhingarde0511
    @kaushikbhingarde0511 2 ปีที่แล้ว +1

    Nicely explained

  • @BigPharma7
    @BigPharma7 ปีที่แล้ว +1

    Thank you! i was having all sorts of problems because i was following a course instruction and i original designed by if/then to work on individual cells, and later decided to add a "for each row." Did not realized i needed to go back and change all the cell references to the "CurrentRow" instead of pointing to individual cells. i guess in my head it would know where to start and then just proceed down the list, but it doesnt work that way, it just loops the first row over and over again because it just keeps checking the same cell. this helped immensely and only took 5 minutes for me to watch the section i needed. thank you!

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Thanks for writing 😊 I'm getting more than 50 messages daily. While I read all of them, I can’t reply to everyone 😔 But I’ve created an RPA/Automation community where we’re 4900+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): th-cam.com/video/xWFz-S96XGo/w-d-xo.html Kind regards, Anders

  • @ahmedbarakat4853
    @ahmedbarakat4853 2 ปีที่แล้ว +1

    you really saved me

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Thanks a lot, Ahmed - have a great day 🙂

  • @Alex-xj7bd
    @Alex-xj7bd ปีที่แล้ว

    @Anders question for you.
    1. I am reading range on a workbook.
    2. Output to Data Table. (Data Table starts indexing at 0)
    3. I want to make the index assign as 1. Then increase the index on each row for as many rows as I have
    4. Then in a Java application I want to type CurrentRow.ToString(”Amount”)
    5. However when I use the assign application it states no variable exists

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey Alex Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @chrisjerica2
    @chrisjerica2 4 หลายเดือนก่อน +1

    Liked it

  • @felipebarrera8240
    @felipebarrera8240 2 ปีที่แล้ว

    Hi anders,
    Thanks for the explanation however I have a question for you....
    what is your way of approaching a nested for each with large dataset?
    my problem is that when running in debug with very large data, it takes ages to process.so debugging becomes complicated

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Felipe Barrera
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @rayshadow6796
    @rayshadow6796 10 หลายเดือนก่อน

    how to loop through images in folder and ocr to txt? i want to get json out to post to a Database?

    • @andersjensenorg
      @andersjensenorg  9 หลายเดือนก่อน

      Thanks for writing 😊 I'm getting more than 50 messages daily. While I read all of them, I can’t reply to everyone 😔 But I’ve created an RPA/Automation community where we’re 9000+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): th-cam.com/video/xWFz-S96XGo/w-d-xo.html Kind regards, Anders

  • @dheerajgakkampudi9907
    @dheerajgakkampudi9907 4 หลายเดือนก่อน

    I'm trying to fill a form( using a excel data) using UiPath where i encountered with a challenge which is the while entering the id of a particular data is already existed in the database so there is a window popped up saying data already existed so i want to ignore that and fill other row of data in form. how can i do that..

    • @andersjensenorg
      @andersjensenorg  4 หลายเดือนก่อน

      Thanks for writing 😊 I'm getting more than 50 messages daily. While I read all of them, I can’t reply to everyone 😔 But I’ve created an RPA/Automation community where we’re 11,000+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): th-cam.com/video/xWFz-S96XGo/w-d-xo.html Kind regards, Anders

  • @windows10x12
    @windows10x12 2 ปีที่แล้ว +1

    Very good video. Hey Anders. I have a challenge. Need to pull a share point list that contain 4000 lines. Using uipath share point activities (office 365) is taking 5 hours to pull the entire lists, even using filters in share point anctivity I cannot reduce the time. Do you know how we can achieve this faster?

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Windows 10x1
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @theWeeGeek
    @theWeeGeek ปีที่แล้ว +1

    How do I loop a data table with type data table columns?

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Using a For each row in DataTable 🙂 I hope it helps, else you're more than welcome to post the problem (with a screenshot) on my discord: andersjensen.org/#community Then we solve it for you. Kind regards, Anders

  • @marvinapura9460
    @marvinapura9460 2 ปีที่แล้ว

    how about loop for google sheet?thank you

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Marvin Apura Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @cameronmcnz
    @cameronmcnz 2 ปีที่แล้ว +1

    I thought there was only one 'each loop'. I didn't realize there were four.

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว +1

      A master like can use the For Each 😀