Setting GetTranactionData - take TransactionItem by files pdf and excel

Do i need to create array to store string ? And where i must to input that array syntax ?