Articles → UIPATH → Convert A Data Table Into The Dictionary In Uipath

Convert A Data Table Into The Dictionary In Uipath






Variables




  1. "table" of type Data table
  2. "Dict" of type dictionary
Picture showing 2 variables of type data table and dictionary in UiPath
Click to Enlarge


Implementation




  1. Drag and drop the "Build Data table" activity to create a data table and assign the value to the "table" variable
  2. Picture showing the build data table activity for creating the new data table in UiPath
    Click to Enlarge

  3. Drag and drop the "Assign" activity and set the value to the "dict" variable
  4. Picture showing assigning the value to the dictionary type variable using the LINQ expression
    Click to Enlarge

  5. Finally, display the value in the message box. Here is the complete flow
  6. Picture showing the complete flow of converting the data table into the dictionary in Uipath
    Click to Enlarge

  7. Save and run the bot

Output


Picture showing the output of converting the data table into the dictionary in Uipath
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, April 8, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250