Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
Question by Hilarius · Apr 20, 2018 at 02:09 AM · cobaltdss rest api

DSS - Extracted files - Clean up

Is there any api or a way to remove 'Extracted files' with additional information(ScheduleId, ReportExtractionId... )? What our team wants to do is remove specific file on 'Extracted files' PROGRMATICALLY.

In document below, I just found about 'Clean up' section, but there is no about 'Extracted files'. (Only about instrument list, a report template and a schedule)

- https://developers.thomsonreuters.com/datascope-select-dss/datascope-select-rest-api/learning?content=5994&type=learning_material_item

chandra.joshi

People who like this

1 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by gteage01 · Apr 20, 2018 at 03:44 AM

Hi,

I would recommend using the .NET Example Application (C# / Direct HTTP - executable code examples):

https://hosted.datascopeapi.reuters.com/RestApi.Help/Home/ExampleAppInstructions

(from landing page: https://hosted.datascopeapi.reuters.com/RestApi.Help/Home/Index - DSS credentials required)

Once unzipped use ...\RESTAPIExampleApplication\bin\Release\Dss.Api.Examples.exe

Login into DSS App using DSS credentials

The "Schedule Extractions" (section) > "Cleanup" example should help here, particularly this part of the code:

//Delete the extracted files, schedule, instrument list and report template. See the "Cleanup" example for
//the various steps involved with cleanup. NOTE: It is a good idea to clean up the extracted files (Report Extractions)
//once you have downloaded the results. If the schedule is not immediate (i.e. recurring), you want to keep the 
//instrument list, report template and schedule around.
if (schedule.ScheduleId != null)
{
 //Get the extractions so that we can delete the extraction files
 var scheduleExtractions = ExtractionsContext.ReportExtractionOperations.GetByScheduleId(schedule.ScheduleId);
foreach (var reportExtraction in scheduleExtractions) { //Get all the files for this extraction ExtractionsContext.LoadProperty(reportExtraction, "Files");
//Use the DeleteMultiple method to delete all the files associated with the schedule var fileIds = reportExtraction.Files .Where(f => f.ContentsExists).Select(f => f.ExtractedFileId).ToList(); if (fileIds.Count > 0) ExtractionsContext.ExtractedFileOperations.DeleteMultiple(fileIds); }

This landing page can also be found via the DSS GUI: https://hosted.datascope.reuters.com/DataScope/ > "Help" (dropdown) > "REST API Help"

Best regards,

Gareth

Comment
jirapongse.phuriphanvichai

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
13 People are following this question.

Related Questions

how to use the FuturesAndOptionsSearchRequest in the python

DataScope with Java Isin features request

GOOGLE, APPL and AMZN Implied Vol

DSS Rest API, is it possible to have 250 days ROLLING history for an equity? could you provide an example?

fx rate extraction

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges