When I try to use the add data column activity and try to pass the entire data column from other table I am not able to do that, getting some error related to add data column activity.
not using column name and not using for each, I want to use only the column property which will take only datacolumn object.
Hey,
Yes, I agree with you, then why do we have the property in add data column activity to add the data column?
Please refer the screenshot shared above for more details.
What ever you have said in the post I agree with you, so now lets say for example: I will add a data row from one table to other table, using add data row activity, will pass the data row, but I want to know how we can do the same with add data column activity to add the new data column from one table to other.
Yes you can pass columns from one datatable to another datatable.
I have attached a sample workflow for you and a sample excel sheet.
Sample excel sheet has 4 columns.
I have created a table using build datatable activity which has 1 column.
Now i have added the 4 columns of a datatable to 1 column of another datatable of build datatable.
Now the resulted build datatable will have 5 columns.
So here one thing to be noted, we cannot use column property of Add data column activity we have to use column name property as we get the error the “column belongs to another datatable” when we use Column property
If you are inside for each, using column property you cannot add the columns to another table.
If you see the same thing happens in Add data row activity when you pass the row variable in Datarow property, you get the same error “this row belongs to another table”