Question

1
Replies
26
Views
IsaiahR9 Member since 2017 19 posts
Sun Life Financial Inc
Posted: August 29, 2018
Last activity: August 30, 2018
Closed
Solved

AsEnumerable Script not working in Pega but working in Visual Studio

I am currently using AsEnumerable to group by my DataTable. It is working perfectly in Visual Studio. But once i use it in Pega, it has wrong result. It has the same datatable and code in visual studio.

Here is my code:

dtNew = tbl.AsEnumerable().GroupBy(row => row.Field<string>("Distinct")).Select(group => group.FirstOrDefault()).CopyToDataTable();

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn