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

Access file using file repository

SOLVED
Garnet

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

Re: Access file using file repository

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

Re: Access file using file repository

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 !

 

Re: Access file using file repository

@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

 

Re: Access file using file repository

Hello @VS_9760165,

 

You can execute service GetFileListingWithLinks  to get the path.

 

Hope it helps,

 

Re: Access file using file repository

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

Re: Access file using file repository

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

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!