question

Upvotes
Accepted
50 12 22 29

​List of files in VBD

Hi, we need all the file names present under VBD along with the size. What is the best way to get it?

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Ayan

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hi @Ayan.

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvote
Accepted
13.7k 26 8 12

@Ayan, let me give you several pointers. They all allow to find the list of files (with their size), but each time this will be for one single package at a time (a package corresponds to a venue). You will have to repeat this for all packages you are interested in.

In the GUI, from the main menu you can go to Standard Solutions - Available Files. Select TRTH Venue by Day from the drop down menu. The list of packages is displayed. Click on a package to see the list of files(with their size). As far as I know it is not possible to export the list of all files for all packages.

If you are using C# you can look at the .Net SDK Tutorial 2: Retrieving VBD files (note that the code installation must also be done, it is described here). How to retrieve the list of files (with their size) is described in this step.

If you are using a different programming language then look at REST API Tutorial 2: Retrieving VBD files. How to retrieve the list of files (with their size) is described in this step.

It would be fairly easy, based on the code from the samples, to create a list of all the files with their size.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
4.4k 10 6 9

Hi @Ayan

For Web GUI, you can click the DATASCOPE SELECT menu on the top left corner and then select "Available Files"

For REST API, you must first list all available venues by requesting list user packages.
Each venue will have a package id which you can use to get a list of files present under that venue, along with the file size.

Alternatively, you can use the GetUserPackageDeliveriesByDateRange method to retrieve list of files by date range.

GET https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange(SubscriptionId='0x0400dc1d24a00cb4',FromDate=2016-11-22T20:54:03.671Z,ToDate=2016-11-24T20:54:03.671Z) HTTP/1.1
Authorization: Token <your_auth_token_goes_here>
Prefer: respond-async

restfiles.png (74.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
50 12 22 29

Hi,

Currently we are waiting for fire wall to open. And to take it from GUI is a bit difficult. Is there anyway to export the complete list from GUI in some file?

Thanks in advance,

Ayan.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

It's not possible to export a list from Web GUI.

But if you use the API, you will get the list in JSON format which you can save to a file.

postmanpack.png (89.1 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.