I built a datatable with 5 columns. Throughout the execution of my process, there are times when I add to the data row. The items that I am adding are elements from an orchestrator queue, and I am sending in an array such as:
At the end of the process, within an Excel Application Scope, I have a write range that writes the datatable. However, when the excel is viewed, it is as such:
Is there a step I am missing to get the actual date pushed to the excel file?
The data type for my original datatable is String. Also, the data I am pulling form the transactions are being converted ToString. Guess I am not following what you are meaning my change the datatype? Are you suggesting that I need two datatables?
So this is how I am sending the data to datatable, using Add Data Row to the datatable. The above calls are the same I use when I log the same data and it comes in the log as expected.
when I run a message box with just one value, it shows the value as expected. When I run the same message box with the array of values, is shows the following.
@etaulton Ohh yes. I Couldn’t notice it in the first post , There is no need to Add {} for each Item or Can you tell me why do you do this :
{TransactionItem.SpecificContent(“Customer ID”).ToString, Customer_ID}
Why TransactionItem.SpecificContent(“Customer ID”).ToString and Customer_ID ?
Pretty sure I saw that in an example, could not have created on my own. lol
so I can do just this? Trying now
{(TransactionItem.SpecificContent(“Customer ID”).ToString), (TransactionItem.SpecificContent(“Amount”).ToString), (TransactionItem.SpecificContent(“Original Trace”).ToString), (TransactionItem.SpecificContent(“Return Code”).ToString), (“No Items”)}
@etaulton Yes, Also I don’t think you’ll be needing the () for each item. Since there are 5 Columns, you’ll need to have 5 items in the array or less than that for it to work.