28-12-23 07:56 AM
I intended to do the following
Answered! Go to Answer.
3 weeks ago
I fixed my case by removing typeof(object) from red line below and I am able to get the result into BP Collection.
my code e.g.
foreach (var field in fields)
{
//if (!dataTable.Columns.Contains(field.Name) && !field.Name.StartsWith("@odata.etag"))
if (!dataTable.Columns.Contains(field.Name))
{
dataTable.Columns.Add(field.Name, typeof(object)); // Add column if it doesn't exist
}
}
break;
hope this will give you some idea.
28-12-23 08:46 AM
[Mod Note: Moved to Blue Prism RPA forum]
06-01-24 09:34 PM
13-08-24 08:12 AM
I'm getting "Page not found"
13-08-24 09:22 AM
It's likely that there are data types from the DB that do not naturally match the BP datatypes, and some sort of manipulation is required. GUID is a typical example, it's everywhere in the DB and needs to be converted to make it output-able as the Text BP data type, e.g. CONVERT(NVARCHAR(36), ProcessID).
3 weeks ago
I fixed my case by removing typeof(object) from red line below and I am able to get the result into BP Collection.
my code e.g.
foreach (var field in fields)
{
//if (!dataTable.Columns.Contains(field.Name) && !field.Name.StartsWith("@odata.etag"))
if (!dataTable.Columns.Contains(field.Name))
{
dataTable.Columns.Add(field.Name, typeof(object)); // Add column if it doesn't exist
}
}
break;
hope this will give you some idea.