In the workflow with Add Data Row, my intention is to reset the content of the data table (in order not to overlap with content of other Transaction Items). However, looks like I delete everything in that data table, including the header, so the number of columns become 0.
What is the best practice to delete all rows of a data table, but to keep the header?
@Cardon_Cezar If in_OutputDT has the Data and you just want to Keep the Schema/ Headers of the Datatable and remove all the Rows. You can Try this Expression :
@Cardon_Cezar From the Previous Screenshot, I thought you were Supplying ArrayRow Property and not DataRow , Can you Supplying the datarow in the form Array Row Data and check
@Cardon_Cezar Actually I guess the workflow you had was proper, Only I think you need to remove the Assign of in_OutputDT = new Datatable inside the Validate_VendorTaxID workflow, Since you’re passing the new Build Datatable Output as argument to the Workflow. The Datatable should have the Schema and it Should be empty.