Hey folks, I have this custom list which has 8 rows(which can be more or less) having a checkbox and label which has a source for label as entity called as ‘LabelData’, when somone clicks on submit button in my app, it needs to fetch all checkbox & label values and create 8 entity records(in this case) in new entity ‘OptionsData’, not sure how to approach this, can anyone please help
Hi @Nikhil_Jain
Try this
-
For Each Row in DataTable (your custom list data)
- Input:
LabelData
(DataTable from entity)
- Input:
-
Inside loop:
If Activity- Condition:
row("CheckboxColumn").ToString = "True"
- Condition:
-
Inside Then:
Add Data Row (to a temporary DataTable if needed)
OR
Create Entity Record- Entity:
OptionsData
- Map fields: Label =
row("LabelColumn").ToString
, Checkbox =True
- Entity:
This loops through list, checks selected checkboxes, and creates records in OptionsData
.
If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath
Okay, but this would require using process which is gonna delay the experience for user in app, any other work around, any sort of loop for custom list in UiPath app
@prashant1603765 how do you loop through DataTable in UiPath apps with a For Each?
Cheers,
Jeppe
@Nikhil_Jain I am facing this exact problem also - would appreciate advice if you find a solution. You are not using Unified project, correct?
Cheers,
Jeppe
Yeah its not a unified project
Try to use a For Each loop to iterate through the DataTable. Set TypeArgument to DataRow
and in the loop, check if row("CheckboxColumn").ToString = "True"
. If true, either add to a temporary DataTable or create an entity record with the mapped fields.
Happy Automation
Again - please explain how this applies to UiPath Apps, as there is no “For Each” in UiPath Apps, but only in UiPath Studio.