we are using inbuilt system foreachworkflow activity in below image.
but our requirement to not use AsEnumerable after datatable name only we need to pass datatable name but it is expecting AsEnumerable it is system activity how can we modify or how can we create this foreach loop activity in work flow.
if it will modify this is also fine otherwise need to go with create custom loop activity similar this.

raj rajPosted May 17, 2023, 6:26 AM
we want the same foreach box in designer window. is it possible to show?
same body also wants in designer level we want same it is foreach box in workflow c#
Rajkiran SwainPosted May 17, 2023, 4:57 AM
If you want to create your own custom foreach activity in a workflow without using the
AsEnumerablemethod on a datatable, you can follow these steps:NativeActivity.Executemethod of theNativeActivityclass.Executemethod, access the input datatable property and loop through its rows.Here's an example of how you can create a custom foreach activity in a workflow using the
NativeActivityclass: