Skip to main content
1-Visitor
December 11, 2020
Solved

Regarding CSV files processing.

  • December 11, 2020
  • 1 reply
  • 1625 views

Hi team,

 

I have a CSV file in thingworx SystemRepository. I am able to read the contents in the file using Resources["CSVParserFunctions"].ReadCSVFile(params). Is there any service that can give me the File Size and Last Modified Date of the file? 

 

I have seen a service GetLastModifiedDate() but it is not useful.

 

Thanks and regards,

 

 

Best answer by Ciprian-Traian

Hi @Bhanu_Manoj,

 

There is also the service GetFileListing which executes without needing to specify a path, it will show the files from your repository with Last Modified Date and size.

 

 

Hope it helps,

1 reply

5-Regular Member
December 11, 2020


Hello @Bhanu_Manoj ,

 

Have you tried to execute the service GetFileListingsWithLinks, it should show the File Size and Last Modified Date of the file.

 

Hope it helps,

1-Visitor
December 11, 2020

Hi @Ciprian-Traian,

 

Can you kindly let me know from where i have to use the service GetFileListingsWithLinks. I couldn't see it in CSVParserFunctions. 

 

My file is present in a path in SystemRepository. i am trying to use the service in composer. 

 

Thanks and Regards

5-Regular Member
December 11, 2020

Hello @Bhanu_Manoj,

 

You would need to create a File Repository Thing, then use the GetFileListingWithLinks to access the path where your file is present in the SystemRepository.

 

Hope it helps,