cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Access file using file repository

VS_9760165
12-Amethyst

Access file using file repository

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,

 

1 ACCEPTED SOLUTION

Accepted Solutions

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,

View solution in original post

5 REPLIES 5
Ashritha
13-Aquamarine
(To:VS_9760165)

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 !

 

@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

 

Hello @VS_9760165,

 

You can execute service GetFileListingWithLinks  to get the path.

 

Hope it helps,

 

Hi @Ciprian-Traian

 

the service itself asking input as path and namemask . could you please see it? i did below steps..

1. created a Thing with baseThingTemplate as FileRepository.(i got all services here)

2.i accessed SystemRepository from left pane of compose and i uploaded the csv file...below images..now i want to access that file from composer or i want the list of files.

VS_9760165_0-1609927664323.png

VS_9760165_1-1609927743425.png

thanks

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,

Top Tags