Thursday, February 1, 2018

How to work with a dynamic array---UiPath(RPA)

If you want to work with a collection that doesn't have a fixed number of elements, you can use a list instead of an array.

A List expands as you add new items to it. You can add new items to a list using the Add To Collection activity (you will find it under Programming->Collection category).

The attached ListExample workflow shows you how to declare, init, add and display items from a list.

Workflow Steps

DynamicArray_List_logic.png
1. Initializing the list:

items=new List(of string)

2. Get the input for the list, using an  InputDialog activity.

3. The new element (name) is added to the items collection (with Add To Collection activity).
DynamicArray_AddToCollection.png

4. The robot asks if you want to continue adding new elements (using Message Box activity). The response is saved in the answer variable.

5. A decision is taken (using a Flow Decision activity): if the answer to the previous step was Yes, the workflow will return to step 2. A No answer will move the workflow to the next sequence (step 6).
DynamicArray_Decision.png
6. The sequence will go through each item in the list.  It will pop up a window with the inputName of each element.

DynamicArray_DisplayData.png
Note: This workflow was created & tested with UiPath Studio 8.

Attachments:

19 comments:

  1. Good post. Keep sharing such kind of worthy information.

    UiPath Training in Chennai | UiPath Courses in Chennai

    ReplyDelete
  2. Robotic process automation (RPA) is the use of software with artificial intelligence (AI) and machine learning capabilities to handle high-volume, repeatable tasks that previously required humans to perform.It is very useful information about Rpa Blue Prism.I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    RPA Training in Pune


    ReplyDelete
  3. Thanks Learned a lot of new things from your post! Good creation and HATS OFF to the creativity of your mind. Very interesting and useful blog!
    Selenium Training in Hyderabad

    ReplyDelete
  4. Great blog and nice article at this ones..
    looking for good keep sharing this information!
    RPA Training Course in Chennai

    ReplyDelete
  5. This concept is a good way to enhance the knowledge.thanks for sharing..
    UI Path Online Training

    ReplyDelete
  6. Good Post! you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.


    UIPath Training in Chennai
    UIPath Training

    ReplyDelete
  7. Thanx for sharing your ideas...keep it up
    https://youtu.be/C74GS0OraAw
    https://youtu.be/XnkYSySw308

    ReplyDelete
  8. Nice! you are sharing such helpful and easy to understandable blog in decoration. i have no words for say i just say thanks because it is helpful for me.

    robotic process automation companies in us
    Robotic Process Automation in us
    machine maintanance in us
    mobility software companies in chennai
    erp providers in us

    ReplyDelete
  9. Hi, thank you very much for the new information, i learned something new. Very well written. It was sooo good to read and usefull to improve knowledge. Keep posting. If you are looking for any data science related information please visit our website data science course training bangalore.

    ReplyDelete
  10. It’s great blog to come across a every once in a while that isn’t the same out of date rehashed material. Fantastic read.
    manual testing training in chennai |Manual testing course chennai

    ReplyDelete
  11. I really appreciate the work you have done, you explained everything in such an amazing and simple way.

    RPA training in Marathahalli
    Blue prism training in Marathahalli
    Uipath training in Marathahalli

    ReplyDelete
  12. This is a nice article you shared great information I have read it thanks for giving such a wonderful Blog for the reader.
    UI Path Online Training
    UI Path Training in Hyderabad

    ReplyDelete
  13. Excellent article and with lots of information. I really learned a lot here. Do share more like this.
    Blue Prism Training in Chennai
    Blue Prism Online Training
    Blue Prism Course in Chennai

    ReplyDelete
  14. Quick up your career with Azure Training in Chennai from Infycle Technologies, the best software training institute in Chennai. A massive place to learn topmost technical courses like Medical Coding, Mobile App Development, Data Science, Big Data, BlockChain, Full Stack Development, Digital Marketing with Graphic Design, Python, and Oracle with emphasized trainers of the industry. Speak to us on 7504633633, 7502633633 to know the updated offers for your learning.

    ReplyDelete