i am using camel query in share point and output of that is in dictionary 2 format ie (system.collection.generic.dictionary<system.string.system.object>format…i want to store the result of that output in the readable format or in the data table format …how can i do that
![111](https://global.discourse-cdn.com/uipath/original/3X/9/0/9041436d3d7b82e96ac7b96b6e1cd5b4fcca6fff.png)
@bhala You’ll need to Loop through the resultdt using for Each,
Make Type Argument of for Each as Dictionary<Of String, Object>, then Using the Field Values from the Sharepoint you can access the values inside the For Each in this way :
item(“FieldName”).ToString
Try to Implement it in this way
This Post Might give you more Details about it :
plz ellaboratate for each …but i dont have data table variable and for each we need it…
@bhala Do you know the Field Names present in the Sharepoint?
yes i know
i just want …what i have brought the result from the sharepoint ,it should be seen or stored somewhere
@bhala In this xaml, there contains a ForEach, Paste that ForEach in your Workflow after Read List Items.
justForEach.xaml (5.2 KB)
Hi @bhala
Use Microsoft.activities.extensions package please do install
Thanks
Ashwin S
@bhala Ok Then Delete it , I will tell what you need to Do
- Use For Each Loop after Read List Items
- Change The Type Argument to Dictionary<String,Object>
- Inside body of For Each use a Message Box, with value item(“FieldName”).toString
This Should Work
no sir im nor getting …how to change argument to dictionary <string,object>
and for each i havent input data table variable…
Hi @bhala
use for each item and change type as dictionary(of string,object)
and print the item as item(“Field name”).ToString
Thanks
Ashwin S
i dont know how to change argument…
@bhala Check the Screenshot, Click On Browse For Types in ForEach Type Argument :
yes sir…getting…but we have read list output is result
…we ineed input data table variable…ie result of read list
@bhala Do not use For Each Row, Use For Each
now this error is shown
@bhala Can you show me What you are performing inside a For Each ?