How to pass the value of the data row in for each file in folder

how to pass the value of the data row in For each File in Folder

I use the

in_TransactionItem(“FilePath”).ToString()

@krishnapriya_Anu

This looks correct…but the filepath is a file or a folder?

if file then it would not work as it needs a folder path…if you want to give the folder in which the file is present then use Path.GetDirectoryName(in_TransactionItem("filepath").ToString)

cheers

@krishnapriya_Anu

in_transactionitem.specificcontent(“Your variable”).tostring

Hi @krishnapriya_Anu

Give the below one in In folder option in For each file in folder activity.

In_TransactionItem.specificcontent(“FilePath”).toString

You have forgetten to give specific content

Hope it helps!!

Hi @krishnapriya_Anu

in_TransactionItem.SpecificContent(“FilePath”).ToString()

image

Inside for each give your other activities

Regards,

@krishnapriya_Anu

in_TransactionItem.SpecificContent(“FilePath”).ToString

@krishnapriya_Anu
Assign=
Folder datatype is string

Folder=in_TransactionItem.SpecificContent(“FilePath”).ToString

Pass the folder in In folder

Hope it works

Hi @krishnapriya_Anu

where are taking the data from. Is it from Excel or Queues.

Regards,

This works

Hi @krishnapriya_Anu , if your in_TransactionItem is a datarow, then to get the file path value, you can use in_TransactionItem(“FilePath”).ToString

If it is a Datarow then in_TransactionItem(“FilePath”).Tostring
if it is Queue then in_TransactionItem.SpecificContent(“FilePath”).Tostring

Hope it helps!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.