Skip to main content
1-Visitor
January 6, 2021
Solved

Access file using file repository

  • January 6, 2021
  • 1 reply
  • 3234 views

Hi ,

I am looking to access csv file from SystemRepository , i have stored the file in SystemRepository of Cloud Instance of TWX..when i use getFileListing() it asks parameters like below but not getting how to set path of repo and namemask..also check repo snap..

VS_9760165_0-1609908030615.png

VS_9760165_1-1609908079184.png

Thanks,

 

Best answer by Ciprian-Traian

Hello @VS_9760165 ,

 

You would upload the csv file in the Repo Thing that you just created , I am pasting my example:

 

image.png

 

 

 

After that you can use the service GetFileListingWithLinks to get info about the file path or list of files it contains :

 

image.png

 

 

Let me know if this helps you,

 

Thank you,

1 reply

15-Moonstone
January 6, 2021

Hi @VS_9760165 ,

 

Mention  Path : /

This will list all the files with path. So by using listed path you can get the required files.

You can click here for more details.

 

Hope it helps !

 

1-Visitor
January 6, 2021

@Ashritha ,

My file is at SystemRepository on Cloud instance of TWX so i can access directly without path ? or what should be path ? i had attached snaps whatever i had...and now i am getting empty result after executing getfilelisting like below ...

VS_9760165_0-1609912383159.png

Thanks

 

5-Regular Member
January 6, 2021

Hello @@VS_9760165,

 

You can execute service GetFileListingWithLinks  to get the path.

 

Hope it helps,